Skip to content

Instantly share code, notes, and snippets.

View ju1's full-sized avatar

ju1

View GitHub Profile
@ju1
ju1 / contactForm7Recipe.json
Created June 26, 2018 21:18
Contact Form 7 Trackinng Recipe for Google Tag Manager
{
"exportFormatVersion": 2,
"exportTime": "2018-06-26 21:18:24",
"containerVersion": {
"path": "accounts/1164259306/containers/9334659/versions/0",
"accountId": "1164259306",
"containerId": "9334659",
"containerVersionId": "0",
"container": {
"path": "accounts/1164259306/containers/9334659",
@ju1
ju1 / facebook-wca-standard-events.html
Created May 4, 2016 17:45 — forked from danieljwonder/facebook-wca-standard-events.html
Sample Facebook Standard Events for New Facebook WCA (Website Custom Audience) Pixel
<!-- Facebook Custom Audience Pixel Code - Placed on Every Page of Site -->
<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','//connect.facebook.net/en_US/fbevents.js');
fbq('init', '{{facebook pixel}}');
fbq('track', 'PageView');
</script>
@ju1
ju1 / 3rdPageviewTriggerRecipe
Last active May 30, 2024 05:47
Fires a trigger on 3rd pageview
{
"exportFormatVersion": 2,
"exportTime": "2024-05-30 05:47:09",
"containerVersion": {
"path": "accounts/1164259306/containers/6905227/versions/0",
"accountId": "1164259306",
"containerId": "6905227",
"containerVersionId": "0",
"container": {
"path": "accounts/1164259306/containers/6905227",
@ju1
ju1 / Sample top bar
Last active April 29, 2024 18:17
Demo bar
<style type="text/css">
#bn-bar {
-moz-transition: all 0.5s ease;
-webkit-transition: all 0.5s ease;
-transition: all 0.5s ease;
position: fixed;
-webkit-transform: translateZ(0);
width: 100%;
height: 40px;
line-height:40px;
@ju1
ju1 / vimeoListener.json
Last active November 23, 2021 13:18
Vimeo Player Recipe for Google Tag Manager
{
"exportFormatVersion": 2,
"exportTime": "2021-11-23 13:17:42",
"containerVersion": {
"path": "accounts/1164259306/containers/6427280/versions/0",
"accountId": "1164259306",
"containerId": "6427280",
"containerVersionId": "0",
"container": {
"path": "accounts/1164259306/containers/6427280",
<script id="gtm-jq-ajax-listen" type="text/javascript">
(function() {
'use strict';
var $;
var n = 0;
init();
function init(n) {
@ju1
ju1 / youtubeTrackingRecipe2017.json
Last active March 16, 2021 09:33
An updated Youtube tracking recipe including built-in Youtube GTM Trigger
{
"exportFormatVersion": 2,
"exportTime": "2017-09-15 06:16:08",
"containerVersion": {
"path": "accounts/1164259306/containers/7522953/versions/0",
"accountId": "1164259306",
"containerId": "7522953",
"containerVersionId": "0",
"container": {
"path": "accounts/1164259306/containers/7522953",
@ju1
ju1 / facebookFullRecipe.json
Last active March 16, 2021 09:28
Full Facebook Recipe for Google Tag Manager: Track Likes, Comments, and when messages are sent.
{
"exportFormatVersion": 2,
"exportTime": "2018-01-03 11:28:31",
"containerVersion": {
"path": "accounts/1164259306/containers/7512550/versions/0",
"accountId": "1164259306",
"containerId": "7512550",
"containerVersionId": "0",
"container": {
"path": "accounts/1164259306/containers/7512550",
@ju1
ju1 / html5videoRecipe.json
Last active June 3, 2020 02:21
HTML5 Video Tracking Recipe for GTM
{
"exportFormatVersion": 2,
"exportTime": "2017-12-04 08:16:31",
"containerVersion": {
"path": "accounts/1164259306/containers/7452306/versions/0",
"accountId": "1164259306",
"containerId": "7452306",
"containerVersionId": "0",
"container": {
"path": "accounts/1164259306/containers/7452306",
@ju1
ju1 / cookiebotGDPRConsentRecipe.json
Last active January 31, 2020 21:08
CookieBot GDPR recipe for GTM
{
"exportFormatVersion": 2,
"exportTime": "2020-01-31 21:08:03",
"containerVersion": {
"path": "accounts/471432256/containers/9242444/versions/0",
"accountId": "471432256",
"containerId": "9242444",
"containerVersionId": "0",
"container": {
"path": "accounts/471432256/containers/9242444",