Understanding Lytics / Product Documentation / Lytics Javascript Tag

Installing with Google Tag Manager

  1. Log into your Google Tag Manager (GTM) account and find the New Tag card.

    New Tag card

  2. Click the New Tag card and click Tag Configuration.

    New Tag pane

  3. In the list of tag options, find Lytics JS Tag.

    Lytics Integration Type

  4. Configure the Lytics Tag by entering your Account ID.

    Lytics Integration Config

  • Account ID Required
    • Your account ID can be found by going to the ACCOUNT at the top right of your dashboard. Then Manage Accounts and finally clicking edit on the account you are configuring. The value you are looking for will be labeled ID.
  • Google Analytics User ID Dimension
    • This setting is generally handled by the Lytics Google Analytics integration. For extreme edge cases that require the use of a dimension different than the integration configures this field allows you to define a User ID for an anonymous user in Google Analytics.
  • Google Analytics User Dimension
    • This setting is generally handled by the Lytics Google Analytics integration. For extreme edge cases that require the use of a dimension different than the integration configures this field allows you to define where Lytics will pass the Lytics _uid information to Google Analytics.
  • Google Analytics Segment Dimension
    • This setting is generally handled by the Lytics Google Analytics integration. For extreme edge cases that require the use of a dimension different than the integration configures this field allows you to define where Lytics will pass a list of all current Lytics Audiences a user is a member of to Google Analytics.
  • Fields
    • Lytics has the ability to return fields from a user profile to the browser in real time. By default only the audience membership is returned. Adding a comma separated string of fields here will enable the return of additional attributes. Please note, fields must also be white-listed at the account level by contacting customer support. This is to ensure maximum profile privacy.
  • Unique Identifier Override
    • By default Lytics will use our own _uid as an identifier for web traffic. In the case of a user that has logged in it is common for customers to want to use a known User ID. By adding the name of the field in Lytics here you can override our default key.
  • Unique Identifier Value Override
    • By default Lytics will use our own _uid value as an identifier for web traffic. In the case of a user that has logged in it is common for customers to want to use a known User ID. By adding the value of the custom ID referenced in the Unique Identifier Override field you will identify users by an alternate by field.
  1. Under the Tag Configuration Section, click the Triggering section.

    Tag triggering section

  2. Add the All Pages trigger to make sure JSTag will run everywhere GTM is.

    All Pages trigger

  3. To save yourself some future confusion, name this tag Lytics JS Tag

    Name your custom tag

  4. Save your new tag.

    Tag triggering section

  5. Publish the changes to your Workspace.

    Workspace publish

  6. Verify what you are publishing and confirm.

    Publish verification

  7. If prompted, optionally name your Container.

    Container naming

  8. Verify that you see a version number.

    Version number

You're done! Data should now be coming into Lytics, through Google Tag Manager.