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:
- Copy the code provided by AtData.
- 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:
- Log in to your Google Tag Manager account and select the container for your domain.
- Click on the red New Tag button.
- Name the tag AtData WVI.
- Under Tag Configuration, select Custom HTML.
- Paste the JavaScript code into the provided area.
- Enable Support document.write.
- Under Triggering, choose All Pages.
- Click Save.
- In the upper right-hand corner, click Publish to apply the changes.
- 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
- Install the Header and Footer plugin.
- Open the plugin's configuration panel.
- Under the Page head and footer tab, paste the JavaScript code into the HEAD section field.
- Save your changes.
Option 2: Add Directly to header.php
- Go to Appearance > Editor >
header.php
. - Locate the
</head>
tag. - Paste the JavaScript code just before the closing
</head>
tag. - Click Update File to save your changes.
GoDaddy Website Builder
Follow the steps below to install WVI pixel in GoDaddy Website Builder:
- Log in to your GoDaddy account and open GoCentral.
- Click Edit Site.
- Scroll to the section where you want to add the pixel, then click the plus button.
- In the Add Section panel, scroll to the bottom, select Show More, then choose the HTML pane.
- In the HTML panel, customize the settings starting with the Section Title field.
- Paste the JavaScript code into the Custom Code field.
- Leave the Forced Height field blank.
- Click the < or Done button at the top of the HTML panel to save your changes.
- Preview your site to ensure the pixel is working correctly.
- When satisfied, click Publish Site or Publish.
Updated 16 days ago