Cheatsheet using marketing tools and analytics for developers.

Event - [Event Name]

  • Trigger Type = Custom Event
  • Event Name = [eventName]
  • Fires on = All Custom Events
  • Add per new dataLayer.push

Data Layer - [property_name]

  • Variable Type = Data Layer Variable
  • Data Layer Variable Name = [property_name]
  • Add per new property

ADW - CONV - [Event Name]

  • Tag type = Adwords Conversion Tracking
  • Conversion ID = {{Cons - ADW Conv ID}}
  • Conversion Label = Copy google_conversion_label value from:

    • Adwords -> Tools -> Conversions
    • Add Conversions

      • Type = Website
      • Name = Name
      • Value = Don't assign a value
      • Count = Every/One
      • Windows = Default
      • Category = Lead/Sale
      • Include in Conversions = Yes
      • Attribution = Last Click
  • Triggering = Event - [Event Name]

ADW - RMK - [Event Name]

  • Tag type = Adwords Remarketing
  • Conversion ID = {{Cons - ADW Conv ID}}
  • Conversion Label =
  • Custom Parameters = Manual Specify

    • dynx_pagetype = [eventName]
    • [property_name] = {{DL - [property_name]}}
  • Triggering = Event - [Event Name]

Amplitude - [Event Name]

  • Tag type = Custom HTML Tag
  • HTML (Code from Amplitude Events)

    <script>
        var eventProperties = {
            '[property_name]' : '{{DL - [property_name]}}'
        };
        amplitude.getInstance().logEvent('[Event Name]', eventProperties);
    </script>
  • Triggering = Event - [Event Name]

FB - Pixel - [Event Name]

  • Tag type = Custom HTML Tag
  • HTML (Code from Facebook Pixel)

    <script>
        fbq('track', '[FacebookEventEquivalent]', {
            '[property_name_fb_equivalent]' : '{{DL - [property_name]}}'
        });
    </script>

    OR

    <script>
        fbq('trackCustom', '[EventName]', {
            '[property_name]' : '{{DL - [property_name]}}'
        });
    </script>
  • Triggering = Event - [Event Name]

GA - Event - [Event Name]

  • Tag type = Universal Analytics
  • Tracking ID = {{Cons - GA Property ID}}
  • Track Type = Event
  • Category = Conversion
  • Action = [Event Name]
  • Label = {{DL - [property_product_id]}}
  • Value = {{DL - [property_price]}}
  • Align values from:

    • Analytics -> Admin -> Goals
    • New Goal
    • Template = Custom
    • Name = [Event Name]
    • Type = Event
    • Category = Conversion
    • Action = [Event Name]
    • Label = [Label]
    • Value = [Value]
  • Triggering = Event - [Event Name]

Zarget - [Event Name]

  • Tag type = Custom HTML Tag
  • HTML (Code from Zarget Goals)

    <script>
       window.zargetAPI = window.zargetAPI || [];
       window.zargetAPI.push('zg_trackEvent', '[Event Name]');
    </script>
  • Triggering = Event - [Event Name]

CJS - [Return Value]

  • Variable Type = Custom Javascript
  • Custom Javascript:

    • Anonymous function
    • Return = Value

Cons - [Constant Name]

  • Variable Type = Constant
  • Value = [Value]

    • Used for Configuration IDs
    • Used for Currency

Tag Manager Notes

reference: claw68 gist