Skip to main content

Implement the Loop Tag for Real-Time Web Tracking

Learn how to implement the Loop Tag using Google Tag Manager for seamless website tracking.

J
Written by Juan Sebastian Franco
Updated over 3 months ago

The Loop Tag is a JavaScript tracking code that allows you to collect first party data straight from your website. Setting up this tag allows you to:

  • Identify users who browse your website.

  • Sync users with media buying platforms to export audiences via the DMP.

  • Enable integration with ad servers on your site.

  • **Count and segment users** who visited your site based on declared rules in Loop.

  • Get demographic and behavioral insights about your users thanks to Loop's data enrichment

Recommended Method: Installing the Loop Tag via Google Tag Manager (GTM)

The recommended way to implement the Loop Tag is through Google Tag Manager (GTM). This method is simpler, less error-prone, and easier to maintain.

Step 1: Retrieve the Loop Tag from the Platform

  1. Navigate to Sources in the Loop platform.

  2. Click Create New and select JavaScript Tag.

  3. Enter a name and description to identify this tag in the future.

  4. Loop will generate a JavaScript snippet that you can copy and use where required.

Snippet to integrate the Loop tag

Step 2: Install Using Google Tag Manager

  • Log into Google Tag Manager and open your workspace.

  • Click on Tags, then click New.

  • Click Tag Configuration and select Custom HTML.

  • Paste the Loop Tag script copied from the Loop platform into the HTML field.

Step 3: Configure Triggering

  • While creating the tag, click Triggering.

  • Select the expected trigger:

    • To track visits across the entire site, choose All Pages (recommended default trigger in GTM).

    • To track specific pages, configure a Custom Trigger.

  • Give the tag a meaningful name and click Save.

Step 4: Publish Changes in Google Tag Manager

  • Click Submit and then Publish to save and set live the changes to your GTM workspace.

  • Add a version name or description (optional) and confirm the update.

  • Once submitted, the Loop Tag will be live on your website.

For detailed instructions on creating a Custom HTML Tag in GTM, refer to Google's official documentation

Alternative Method (Not Recommended): Manual Installation

If you prefer not to use GTM, the Loop Tag can be manually placed on your website. However, this method is error-prone and harder to maintain, so we strongly recommend using GTM instead.

Potential Issues with Manual Installation:

  • Any errors in placement may cause the tag not to fire correctly.

  • Updating the tag requires modifying every page manually.

  • Increased risk of incorrect implementation, affecting data accuracy.

Steps for Manual Installation

  1. Copy the Loop Tag code provided by Loop.

  2. Open your website’s HTML files.

  3. Paste the code as high as possible between the <head> and </head> tags on every page where you want tracking.

  4. Save and upload the updated files to your server.

What Data Does the Loop Tag Collect?

Once implemented, the Loop Tag automatically collects the following data on each visit:

  • Customer source identifier (Client ID, Source ID)

  • User Agent (browser and device information)

  • IP Address

  • Current Page URL and Referrer URL

  • Page Title and Meta Data (description and keywords)

  • Google Analytics Search Keywords (if available)

  • Loop Cookies (including anonymous user identification, synchronized platforms, opt-in/opt-out status)

How to Verify the Installation

After implementing the Loop Tag, confirm that it is working correctly:

  1. Use Loop's Inspector tool [TO BE CONFIRMED]

  2. Using Google Tag Manager Preview Mode

    • Open GTM, click Preview, and navigate to your website.

    • Check if the tag fires correctly.

  3. Using Browser Developer Tools

    • Open your website and inspect the Network Requests.

    • Look for requests sent to Loop’s tracking domain.

  4. Checking Loop’s Analytics Dashboard

    • Go to the Analytics section in Loop to verify incoming data.

Did this answer your question?