This file contains hidden or 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
<script> | |
(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'); | |
// add this line into your google analytics snippet | |
CountlyGAAdapter(); | |
ga('create', 'UA-XXXXXXXX-3', 'auto'); |
This file contains hidden or 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('send', 'event', 'Videos', 'play', 'Fall Campaign'); |
This file contains hidden or 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
Countly.q.push(['add_event', { | |
"key":"play", | |
"count":1, | |
"segmentation":{ | |
"category":"videos", | |
"label":"Fall Campaign" | |
} | |
}]); |
This file contains hidden or 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('send', 'pageview'); |
This file contains hidden or 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
Countly.q.push(['track_pageview']); |
This file contains hidden or 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('ecommerce:addItem', { | |
'id': '1234', | |
'name': 'Fluffy Pink Bunnies', | |
'sku': 'DD23444', | |
'category': 'Party Toys', | |
'price': '11.99', | |
'quantity': '5' | |
}); |
This file contains hidden or 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
Countly.q.push(['add_event', { | |
"key":"ecommerce:addItem", | |
"count":5, | |
"sum":'11.99', | |
"segmentation":{ | |
"id":"1234", | |
"name":"Fluffy Pink Bunnies", | |
"sku":"DD23444", | |
"category":"Party Toys" | |
} |
This file contains hidden or 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
/* | |
* Track pageview | |
*/ | |
// GA | |
ga('send', 'pageview', location.pathname); | |
// Mapped Countly Action | |
Countly.q.push(['track_pageview',location.pathname]); |
This file contains hidden or 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
<script src="/countly-web-sdk/plugins/adapter.js"></script> |
This file contains hidden or 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
<script src="/countly-web-sdk/plugins/adapter.js"></script> |