Editing
Site tracking and the GDPR
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Step-by-Step Instructions to Update Site Tracking for GDPR == Follow these steps to ensure that your site tracking setup complies with GDPR regulations: === Step 1: Replace the Site Tracking Code === To align with GDPR compliance requirements, you must replace the active site tracking code on your website with an updated version: 1. Log into your ActiveCampaign account. 2. Navigate to '''Settings''' and then select '''Tracking'''. 3. Copy the new tracking code indicated in the '''Tracking Code''' box. 4. Paste the updated code into your website's HTML, replacing the existing tracking code. === Step 2: Update the "Track by Default" Setting === After replacing the site tracking code, review the '''Track by Default''' setting within the code: 1. Locate the line that states: ``` vgo('setTrackByDefault', true); ``` 2. Update it to: ``` vgo('setTrackByDefault', false); ``` This adjustment is essential as it prevents automatic tracking of page visits without explicit consent, aligning your practices with GDPR requirements. === Step 3: Create a "Tracking Consent" Notice === Develop a notice on your website that requests permission from contacts regarding tracking: 1. Ensure the notice specifies what information will be collected, how it will be used, and that consent can be withdrawn at any time. 2. The language used should be clear and straightforward, with a method for individuals to indicate their consent, such as a button or checkbox labeled "I agree" or "Accept." === Step 4: Code Snippet for Consent Handling === To handle the acceptance of tracking properly, implement a code snippet on your "Yes/Agree" button: 1. When someone consents to tracking, execute the following code: ```javascript vgo('process', 'allowTracking'); ``` 2. To manage future visits, set a temporary cookie to remember consent: ```javascript if (document.cookie.indexOf('accept_cookies') !== -1) { vgo('process', 'allowTracking'); } $('.btn').on('click', function() { var expiration = new Date(new Date().getTime() + 1000 * 60 * 60 * 24 * 30); vgo('process', 'allowTracking'); document.cookie = 'accept_cookies=1; expires=' + expiration + '; path=/'; }); ``` Ensuring that these steps are implemented will help maintain compliance with GDPR when using the site tracking feature.
Summary:
Please note that all contributions to Activepedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Activepedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information