Overview
The Insights & Personalization Tag is a single line of javascript which, when placed on a website, allows DemandScience to understand your website audience and their behaviors. The tag also enables site optimization by powering the content serving necessary for website personalization. This tag can be added either directly to the website, or via a tag manager such as Google Tag Manager.
Adding the DemandScience Insights & Personalization Tag Directly to a Website
DemandScience will provision a unique tag for your website. It will have the following format:
<script src="https://cdn.webexperiences.com/v2/ABCDEF1G.js"></script>Copy and paste your unique tag into the global header of your website.
Example:
<html>
<head>
<title>Simple Tag Inclusion Example</title>
<script src="https://cdn.webexperiences.com/v2/ABCDEF1G.js"></script>
</head>
</html>
Once the tag is included on all webpages, DemandScience will be able to begin gathering data, providing insights, and delivering onsite optimization.
Adding the Insights & Personalization Tag Using Google Tag Manager:
- Within Google Tag Manager, select “Tags” from the left hand navigation and then click “New” in the top right corner.
- In the new tag interface, name your new tag “DemandScience Website Tag”.
- In the Tag Configuration, choose “Custom HTML” as your tag type.
- In the Triggering section, select “Page View” and “All Pages” as your trigger type. (Note: you may need to create this as a new trigger type if it doesn’t already exist in your Google Tag Manager account)
- Once configured as above, save the new tag and then submit changes for publishing.
Verify that the Tag is Working
Once added to your site, you will want to make sure that you verify the tag is firing correctly. To do so, you can use the developer tools in Chrome:
- On a PC: either hit F12, or go to Settings > More Tools > Developer Tools. Click “Network” then in the Filter section type “webexperiences” and if you see the code load on the site, it was implemented correctly.
- On a MAC: Click on 'View' from your menu bar at the top of the screen. Hover over “Developer”, select “Developer Tools”, click “Network” then in the Filter section type “webexperiences” and if you see the code load on the site, it was implemented correctly. Alternatively, you can right click on the browser screen and select Inspect > Network.
If you installed the script via your Tag Manager, you can verify that the script is running by navigating to:
- Developer Tools (Right click + Inspect, or Settings > Developer Tools) > Sources > Tag Manager URL > Tag Manager Container > Search for “webexperiences” and verify the script was installed on the correct Container.
If you do not see the script firing, please refresh your page. If there continues to be an issue, contact your webmaster and submit a ticket through the DemandScience Support Portal.
Comments
0 comments
Article is closed for comments.