fix gtag
This commit is contained in:
		
							parent
							
								
									6e9319ab95
								
							
						
					
					
						commit
						d0be551625
					
				@ -292,19 +292,19 @@ Copyright:
 | 
				
			|||||||
                        "<span>made with <div class='hearth'>❤</div> by <b class='author'>dzonerzy</b></span>") \
 | 
					                        "<span>made with <div class='hearth'>❤</div> by <b class='author'>dzonerzy</b></span>") \
 | 
				
			||||||
    MD_NEWLINE()
 | 
					    MD_NEWLINE()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define SCRIPTS_HTML                                                                                               \
 | 
					#define SCRIPTS_HTML                                                                                              \
 | 
				
			||||||
    HTML_TAG_OPEN_CONTENT("script", "src=\"/main.js\"", "")                                                        \
 | 
					    HTML_TAG_OPEN_CONTENT("script", "src=\"/main.js\"", "")                                                       \
 | 
				
			||||||
    HTML_TAG_OPEN_CONTENT("script", "async src=\"/https://www.googletagmanager.com/gtag/js?id=G-C4VP1TE4JZ\"", "") \
 | 
					    HTML_TAG_OPEN_CONTENT("script", "async src=\"https://www.googletagmanager.com/gtag/js?id=G-C4VP1TE4JZ\"", "") \
 | 
				
			||||||
    HTML_TAG_OPEN("script", "type=\"text/javascript\"")                                                            \
 | 
					    HTML_TAG_OPEN("script", "type=\"text/javascript\"")                                                           \
 | 
				
			||||||
    HTML_RAWTEXT("window.dataLayer = window.dataLayer || [];")                                                     \
 | 
					    HTML_RAWTEXT("window.dataLayer = window.dataLayer || [];")                                                    \
 | 
				
			||||||
    HTML_NEWLINE()                                                                                                 \
 | 
					    HTML_NEWLINE()                                                                                                \
 | 
				
			||||||
    HTML_RAWTEXT("function gtag(){dataLayer.push(arguments);}")                                                    \
 | 
					    HTML_RAWTEXT("function gtag(){dataLayer.push(arguments);}")                                                   \
 | 
				
			||||||
    HTML_NEWLINE()                                                                                                 \
 | 
					    HTML_NEWLINE()                                                                                                \
 | 
				
			||||||
    HTML_RAWTEXT("gtag('js', new Date());")                                                                        \
 | 
					    HTML_RAWTEXT("gtag('js', new Date());")                                                                       \
 | 
				
			||||||
    HTML_NEWLINE()                                                                                                 \
 | 
					    HTML_NEWLINE()                                                                                                \
 | 
				
			||||||
    HTML_RAWTEXT("gtag('config', 'G-C4VP1TE4JZ');")                                                                \
 | 
					    HTML_RAWTEXT("gtag('config', 'G-C4VP1TE4JZ');")                                                               \
 | 
				
			||||||
    HTML_NEWLINE()                                                                                                 \
 | 
					    HTML_NEWLINE()                                                                                                \
 | 
				
			||||||
    HTML_TAG_CLOSE("script")                                                                                       \
 | 
					    HTML_TAG_CLOSE("script")                                                                                      \
 | 
				
			||||||
    HTML_NEWLINE()
 | 
					    HTML_NEWLINE()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// wait for page ready and then execute the code don't use jQuery
 | 
					// wait for page ready and then execute the code don't use jQuery
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user