Disable Location Tracking
In this page we show how you can integrate Safary's script with the option of disabling the location tracking.
Last updated
In this page we show how you can integrate Safary's script with the option of disabling the location tracking.
Last updated
If you want to use our hosted script, please follow the steps below with special care in the fourth step:
First, once you have signed up, go to your Safary's home page (https://app.safary.club/). Under "Integrate Safary snippet", if you click on "Hosted tag" you should see something like:
Now click on the copy icon on the left of the code to copy the contents of the tracking script.
Go to your front-end's HTML code, and simply paste (CTRL+V or CMD+V) the script's code within the <head> … </head>
tags of the pages you want to have tracking enabled.
When pasting the code, you should see something like:
Now to disable location tracking, add a parameter to specify that behavior:
Add script.setAttribute('data-location', 'disabled');
right after the part containing script=document.createElement('script');
It will look like this after adding it:
That's it. You can save the code in your HTML and rest assured that location data will not be tracked.
If you want to use self-hosted script, please follow the steps below with special care in the fourth step:
First, once you have signed up, go to your Safary's home page (https://app.safary.club/). Under "Integrate Safary snippet", if you click on "Selfhosted tag" you should see something like:
Go to your front-end's HTML code, and simply paste (CTRL+V or CMD+V) the script's code within the <head> … </head>
tags of the pages you want to have tracking enabled.
When pasting the code, you should see something like:
Now to disable location tracking, add a parameter to specify that behavior:
Add data-location="disabled"
right after the part containing product="prd_"
It will look like this after adding it:
That's it. You can save the code in your HTML and rest assured that location data will not be tracked.
Now click on the copy icon on the left of the code to copy the contents of the tracking script.