Skip to content

Commit

Permalink
Update adjustment.go
Browse files Browse the repository at this point in the history
  • Loading branch information
novalagung authored May 17, 2020
1 parent c1bed72 commit 6a70e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adjustment.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func postAdjustment() {

// ===== inject fb pixel
fbPixelToFind := `</head>`
fbPixelReplacement := `<script>!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');fbq('init','1247398778924723');fbq('track','PageView');</script><noscript><imgheight="1"width="1"style="display:none"src="https://www.facebook.com/tr?id=1247398778924723&ev=PageView&noscript=1"/></noscript>` + fbPixelToFind
fbPixelReplacement := `<script>!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');fbq('init','2732551353686813');fbq('track','PageView');</script><noscript><imgheight="1"width="1"style="display:none"src="https://www.facebook.com/tr?id=2732551353686813&ev=PageView&noscript=1"/></noscript>` + fbPixelToFind
htmlString = strings.Replace(htmlString, fbPixelToFind, fbPixelReplacement, -1)

// ===== inject banner of new ebook
Expand Down

0 comments on commit 6a70e29

Please sign in to comment.