Set Up Site Tracking

Site tracking enables you to track webpage visits made in real-time and forms submitted on your websites.

How site tracking works

In order for Site Tracking to work, you need to install the Encharge site tracking code on your website. This tracking code allows page visit data to be sent to your Encharge account.

Encharge uses browser cookies to track visits to every page on your website that has the Encharge site tracking code installed. For that reason, we recommend that you install the site tracking code on every public page of your website.

Once a person is identified we associate their past and future page visits to their profile, as long as they browse your website through the same cookies. 

Before a person becomes identified, any of their page visits will be recorded and visible on their anonymous profile.

To learn how people get identified in Encharge and what is the difference between anonymous and identified people, please check the article on the topic – Anonymous and Identified People.

Page visited will be displayed in the Activity Feed on the Dashboard and in the profile of the person (regardless of whether they are identified or anonymous) along with any data related to the page visit like the name of the page, the browser they visited from and so on:

Each page visits is displayed as a separate block. To view the details of the page visit, click on the more link to the right:


How to set up site tracking

1
Go to Settings  Site Tracking or click this link: app.encharge.io/settings/site-tracking
2
Copy the JavaScript code from the gray box.

3
Paste the code into the <HEAD> section of your website and save the file(s).
4
Make sure the code is installed properly. Either by visiting your website or clicking the "Check again button". Once a page visit is received successfully, you will see a message with the time of the last visit (event):


How to set up site tracking on a WordPress site

We currently don't support a WordPress plugin but installing the site tracking on your WordPress site is pretty easy.

Copy the JavaScript code from the gray box (as explained in the previous section) and go to Your WordPress admin (site.com/wp-admin)  Appearance  Theme Editor. Select the haeder.php file on the right sidebar. Then, paste the code between the <head> </head> tag and click Update.


How to set up site tracking in Google Tag Manager

To do that install the Encharge site tracking code as a Custom HTML tag in your Google Tag Manager and publish the changes to your container. Learn how to install a Custom HTML tag on the Google documentation.


Site tracking advanced settings

To reveal the advanced options click on "Show advanced settings" on the website tracking code page:

Currently, the following options are available: 

Wait for opt-in before tracking

When this setting is enabled, a cookie consent prompt will be shown to visitors on your site and will only track people who accept cookies. Enable this setting if you don't have a legitimate interest (as defined by GDPR) to track website visitors.

Use custom cookie consent prompt

Note that this is a technical feature. 

When this setting is enabled, you can use your own custom cookie consent prompt. We will not track people on your site until you indicate that they have consented.

You will need to call the Javascript code window.EncTracking.optIn() from your cookie prompt to indicate that the current visitor has accepted cookies.

FAQ

Does Site Tracking use 1st or 3rd-party cookies?

Encharge uses 1st-party cookies. This means that the recent initiatives that disable 3rd-party cookies won't affect the Encharge Site Tracking.

Tracking across subdomains of the same domain will work. 

Tracking across separate domains will require that each person is identified on each domain.

Can I use the same Site Tracking code across multiple domains?

Yes. You can add the same site tracking code to multiple domains. However, because Chrome and other browsers block 3rd-party cookies, Encharge uses 1st-party cookies. For that reason, when a person is identified on one domain, they don't automatically get identified on the other domains, too. In other words, if a person is identified on one domain, they would still show as an Anonymous person in the rest of the domains. Tracking across separate domains will require that each person is identified on each domain. Note that site-tracking across sub-domains, however, will work just fine.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us