Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 1. GTM Snippets
- <!-- Google Tag Manager -->
- <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
- new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
- 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
- })(window,document,'script','dataLayer','GTM-K8HZBPD');</script>
- <!-- End Google Tag Manager -->
- <!-- Google Tag Manager (noscript) -->
- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K8HZBPD"
- height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
- <!-- End Google Tag Manager (noscript) -->
- // 3.1. Submit OTP
- dataLayer.push({
- "event": "submitOtp",
- "status": "success" //or failed
- });
- // 3.2. Game Selection
- dataLayer.push({
- "event": "selectGame",
- "game": "kavili catcher" //name of the game
- });
- // 3.3. Carousel Banner Clicks
- dataLayer.push({
- "event": "carouselBannerClick",
- "game": "kavili catcher",
- "bannerNumber": "2", //Position of the banner - string or number
- "bannerOffer": "hbb" //Type of the offer the banner represents
- });
- // 3.4. Start the Game
- dataLayer.push({
- "event": "startPlay",
- "game": "kavili catcher"
- });
- // 3.5. Game Over
- dataLayer.push({
- "event": "gameOver",
- "game": "kavili catcher",
- "score": "123" //either string or number
- });
- // 3.6. User Log Out
- dataLayer.push({
- "event": "logout",
- "status": "success" //or failed
- });
Add Comment
Please, Sign In to add comment