GRPR 25 May 2018

Until the 25th May, Calltracks will continue to track your websites Call Conversions. However, on the 25th, the existing cookies used by Calltracks will expire and you will need to explicitly tell the Calltracks code that you wish to track the session.

However you wish to implement this is entirely up to you. In order to help you test this before the 25th, you can simulate the effect of GDPR being in place by typing the following into a browser console:

document.cookie = 'calltracksGdprActive=1; path=/'

This means that the default behaviour of the Calltracks code will be set to no tracking, and allow you to test the functions below. 

Setting the parameter window.calltracksCookiesAllowed = true

The above parameter is polled by Calltracks every 500 milliseconds. So if it is set to true, then Calltracks will install a cookie called calltracksUID. Once this is present, then whenever this cookie is present, Calltracks will track normally, even if the parameter is not set. If, however, this is set to 'false', then when Calltracks polls for this parameter and finds this value, it will delete the calltracksUID cookie, and then tracking will not take effect. 

Remember, if you are storing the visitors preferences upon return to your site, you may want to recall state of window.calltracksCookiesAllowed last used also, and not depend upon the presence of calltracksUID cookie.

 

Direct javascript controls

The following javascript methods are also available to use providing that the Calltracks javascript has been initialised. These have the same underlying effect as setting the global window.calltracksCookiesAllowed.

__ctwnd.disableCookies()
__ctwnd.enableCookies()

 

Override options

Option 1 

The parameter 'force_tracking=1' can be used when calling the Calltracks 'loader.js' code. This will overwrite any subsequent settings and will ensure that your dynamic numbering will work. However, when you do install user controls, remember to remove this function or any options the user chooses will be ignored. 

Please note: You need not replace the whole java script on your website to use this option, simply add the bold section below to your existing Java script on all pages.

Should you prefer to replace the whole piece of code with this example please replace the word server with the what is currently shown in your code. 

<script>
  (function(){
    e=document.createElement("script");
    e.type="text/javascript",
    e.async=1,
    e.src="//server.calltracks.com/wnd/loader.js?force_tracking=1";
    document.getElementsByTagName("head")[0].appendChild(e);
  })();
</script>

Option 2


You may also implement the following via Google Tag Manager:

<script>window.calltracksCookiesAllowed = true</script> 

 

Example of a consent button that sets tracking allowed:

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/cookie-bar/cookiebar-latest.min.js"</script>
<script>
function pollForButton() {
  btn = document.getElementById("cookie-bar-button");
  if(btn == undefined) {
    setTimeout(pollForButton, 100);
  } else {
    btn.onclick = function() { window.calltracksCookiesAllowed = true; };
  }
}
pollForButton();
</script>

 

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk