Skip to content

Instantly share code, notes, and snippets.

View henkisdabro's full-sized avatar

Henrik Söderlund henkisdabro

View GitHub Profile
@henkisdabro
henkisdabro / APAC Sites - Ace Team Aruba Edge Services Platform
Created February 9, 2021 12:12
Please copy/install the two below GTM snippets following the instructions in the comments. Also, please follow the link to the next gist to implement form tracking as well.
<!-- Place this in the <head> section underneath the charset and viewport <meta> tags -->
<!-- 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-NRK5DKW');</script>
<!-- End Google Tag Manager -->
<!-- Additionally, paste this code immediately after the opening <body> tag-->
@henkisdabro
henkisdabro / APAC Sites - Pentech Aruba Edge Services Platform
Created February 8, 2021 08:43
Please copy/install the two below GTM snippets following the instructions in the comments. Also, please follow the link to the next gist to implement form tracking as well.
<!-- Place this in the <head> section underneath the charset and viewport <meta> tags -->
<!-- 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-5XGVBKJ');</script>
<!-- End Google Tag Manager -->
<!-- Additionally, paste this code immediately after the opening <body> tag-->
@henkisdabro
henkisdabro / Rentalworks GTM code for pcleasing landing page
Last active February 18, 2021 01:35
Please read the in-line comments for details on how to implement.
<!-- Place this in the <head> section underneath the other existing GTM snippet (yes it's okay to have two GTM containers) -->
<!-- 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-PN99ZRH');</script>
<!-- End Google Tag Manager -->
@henkisdabro
henkisdabro / gocarsubs-datalayer-declaration
Last active January 22, 2021 04:16
Execute this dataLayer.push on successful validated form submission
<script>
// to be executed on successful validated form submission of form id: #formWaitingList located on page path: /waitinglist.php
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event': 'waiting list form submission'
});
</script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'email': 'string@domain.com',
'name': 'name as string',
'phone': 'string of number e.g. +60123456789',
'agreedPdpa': 'value of checkbox',
'agreedTcec': 'value of checkbox',
'event': 'successful signup' //leave this intact
});
@henkisdabro
henkisdabro / Magnum 4D CNY2021 body
Last active January 8, 2021 05:27
Paste this code directly underneath the opening <body> tag
<!-- Creme Digital Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-T75TVMM"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
@henkisdabro
henkisdabro / Magnum4D CNY2021
Last active January 8, 2021 05:27
GTM code to be placed underneath the meta charset tag in the <head> section
<!-- Creme Digital 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-T75TVMM');</script>
<!-- End Google Tag Manager -->
@henkisdabro
henkisdabro / History\-199cc70f\entries.json
Last active June 11, 2022 07:41
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///d%3A/Git%20Repos/powiis-landing-page/src/components/Hero/Hero.module.css","entries":[{"id":"8uD6.css","timestamp":1652337973485},{"id":"4GKu.css","timestamp":1652338002670},{"id":"S437.css","timestamp":1652338013208}]}