This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CH.event(function (event, data) { | |
if (event === 'INITIATED_PAGE') { | |
$('#buyer_accepts_marketing').prop('checked', false); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Start of Littledata script | |
! function(e) { | |
var t = {}; | |
function n(r) { | |
if (t[r]) return t[r].exports; | |
var o = t[r] = { | |
i: r, | |
l: !1, | |
exports: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ga('require', 'linker');ga('linker:autoLink', ['source.com', 'destination.com']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Google conversion.js code | |
// conversion_async.js must be used. | |
var lastChargedLineItems = window.chData.order.last_charged_line_items; | |
if (lastChargedLineItems.length > 0) { | |
$.getScript('https://www.googleadservices.com/pagead/conversion_async.js').then(function () { | |
var subTotal = 0; | |
for (var i = 0 ; i < lastChargedLineItems.length; i++) { | |
subTotal += lastChargedLineItems[i].price * lastChargedLineItems[i].quantity; | |
} | |
// Place any additional conversion values in this javascript object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var GTMid = 'GTM-XXXXX'; // Your GTM id here | |
var orderId = window.chData.order.carthook_order_id; | |
var lastChargedLineItems = window.chData.order.last_charged_line_items; | |
window.dataLayer = window.dataLayer || []; | |
var transactionProducts = []; | |
var taxPrice = 0; | |
var subtotalPrice = 0; | |
for (var i = 0; i < lastChargedLineItems.length; i++) { | |
var item = lastChargedLineItems[i]; | |
transactionProducts.push({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CH.event(function (event, data) { | |
if (event === 'INITIATED_PAGE') { | |
$('#buyer_accepts_marketing').prop('checked', false); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ event.Items.0.ImageURL }} |
OlderNewer