AtData WVI JavaScript

To use AtData's Web Visitor Identification (WVI) product, you must install the WVI JavaScript on your website. Your sales representative should have provided you with the JS code specific to your account.

Sample WVI JavaScript

Below is an example of WVI JavaScript code. Yours will be similar:

<script type="text/javascript" data-id="<data_id>" data-label="LABELTEXT" async defer src="//js.<tracking_domain>/c/<YOUR_API_KEY>.js"></script>  
  • <tracking_domain> and <data_id> are not unique to your account; you'll receive these with your pixel.
  • LABELTEXT: Replace this with any data you want to track, such as a session ID or page ID. This data will be passed back to you with your WVI data.
  • <YOUR_API_KEY>: This is a placeholder for the API key. Your script will include a unique API key tied to your account.

Manual Installation

You can install the WVI JavaScript manually. If you're comfortable editing your website's files, follow these steps:

  1. Copy the code provided by AtData.
  2. Paste the code into the <head> or <body> section of the web pages where you want to install the pixel.

Site Management Tools Installation

If you prefer to use your website's built-in tools, here are instructions for some popular platforms:

Google Tag Manager

Follow the steps below to install WVI pixel with Google Tag Manager:

  1. Log in to your Google Tag Manager account and select the container for your domain.
  2. Click on the red New Tag button.
  3. Name the tag AtData WVI.
  4. Under Tag Configuration, select Custom HTML.
  5. Paste the JavaScript code into the provided area.
  6. Enable Support document.write.
  7. Under Triggering, choose All Pages.
  8. Click Save.
  9. In the upper right-hand corner, click Publish to apply the changes.
  10. Optionally, add a description under "Container Version Description" or click Skip.

Your WVI pixel should now be active across all pages.

WordPress

There are two ways to install WVI pixel in WordPress. Using a plugin or adding it directly to header.php. Follow the guides below for your preferred option:

Option 1: Use a Plugin

  1. Install the Header and Footer plugin.
  2. Open the plugin's configuration panel.
  3. Under the Page head and footer tab, paste the JavaScript code into the HEAD section field.
  4. Save your changes.

Option 2: Add Directly to header.php

  1. Go to Appearance > Editor > header.php.
  2. Locate the </head> tag.
  3. Paste the JavaScript code just before the closing </head> tag.
  4. Click Update File to save your changes.

GoDaddy Website Builder

Follow the steps below to install WVI pixel in GoDaddy Website Builder:

  1. Log in to your GoDaddy account and open GoCentral.
  2. Click Edit Site.
  3. Scroll to the section where you want to add the pixel, then click the plus button.
  4. In the Add Section panel, scroll to the bottom, select Show More, then choose the HTML pane.
  5. In the HTML panel, customize the settings starting with the Section Title field.
  6. Paste the JavaScript code into the Custom Code field.
  7. Leave the Forced Height field blank.
  8. Click the < or Done button at the top of the HTML panel to save your changes.
  9. Preview your site to ensure the pixel is working correctly.
  10. When satisfied, click Publish Site or Publish.