AdOcean development newsletters

Polskie 
AdOcean

Archive







Release: 20-06-2018

List of new features and major fixes for this release:
  • New format and GDPR-related changes in Tracking Scripts
  • Changes in GetTrackingScripts command in API


New format and GDPR-related changes in Tracking Scripts

On June 27, 2018, we will introduce a new format of tracking scripts in AdOcean. The change includes the following:

  • different format of JS-based of scripts,
  • IMG-based scripts in the user interface,
  • possibility to send information about the user's consent,
  • possibility to choose tracking scripts with auto protocol - the protocol of the website will be used automatically,
  • appropriate changes in API.

Tracking scripts in the new format will make it possible to send information about the GDPR-related user consent with the use of the nc parameter:
  • in JS-based scripts its value has to be set to false if the user consents, or true if the user doesn't consent
  • in IMG-based scripts and hit URLs its value has to be set to 0 if the user consents or 1 if the user doesn't consent
By default, the value of the nc parameter is set to false or 0, which means that the user has consented.


Examples of tracking scripts


Impression tracking script - JS


<script type="text/javascript">
    (_gdeaq = window._gdeaq || []).push(['nc', 'false']);
</script>
<script type="text/javascript">
(_gdeaq = window._gdeaq || []).push(['hit', 'myao', 'px1FZ.N6mQ6pOu0XXXBEf7e9.BfYCZgrLTDH2cmAeKH.27', 'qhcknmskds', 'lnrkkxqimozlkdeegkteblyoykmc']);
</script>
<script type="text/javascript" src="//myao.hit.gemius.pl/gdejs/xgde.js"> </script>


If the user doesn’t consent, you should pass the parameter nc=true.

If GDPR doesn't apply to the user, you can skip the following part of the script:

<script type="text/javascript">
    (_gdeaq = window._gdeaq || []).push(['nc', 'false']);
</script>


Impression tracking script - IMG

<img src="http://myao.hit.gemius.pl/redot.gif?id=px1FZ.N6mQ6pOu0XXXBEf7e9.BfYCZgrLTDH2cmAeKH.27/stparam=qhcknmskds/fastid=lnrkkxqimozlkdeegkteblyoykmc/nc=0" border="0"></img>


If the user doesn’t consent, you should pass parameter the nc=1.


Click tracking script

http://myao.hit.gemius.pl/hitredir/id=px1FZ.N6mQ6pOu0XXXBEf7e9.BfYCZgrLTDH2cmAeKH.27/stparam=nijqqjmpnn/fastid=irbdhvrnbumriqegngeacdelagim/nc=0/url=

If the user doesn’t consent, you should pass parameter the nc=1.



Expansion tracking script - JS


<script type="text/javascript">
    (_gdeaq = window._gdeaq || []).push(['nc', 'false']);
</script>
<script type="text/javascript">
(_gdeaq = window._gdeaq || []).push(['hit', 'myao', 'px1FZ.N6mQ6pOu0XXXBEf7e9.BfYCZgrLTDH2cmAeKH.27', 'ukotkrjnbc', 'mlmefmdgcyhqspauvgfvhninjule']);
</script>
<script type="text/javascript" src="//myao.hit.gemius.pl/gdejs/xgde.js"> </script>

If the user doesn’t consent, you should pass the parameter nc=true.

If GDPR doesn't apply to the user, you can skip the following part of the script:

<script type="text/javascript">
    (_gdeaq = window._gdeaq || []).push(['nc', 'false']);
</script>



Expansion tracking script - IMG

<img src="http://myao.hit.gemius.pl/redot.gif?id=px1FZ.N6mQ6pOu0XXXBEf7e9.BfYCZgrLTDH2cmAeKH.27/stparam=ksuknmsyvm/fastid=msurkxqibvtskdeegpgmtlyoypqr/nc=0" border="0"></img>


If the user doesn’t consent, you should pass parameter the nc=1.


Changes in the GetTrackingScripts command in API

Due to changes in tracking scripts, the GetTrackingScripts command in AdOcean API will be updated. Currently, it is possible to download JS and IMG-based impression tracking scripts with the use of the impressionsScriptType parameter. From June 27, 2018, all types of tracking scripts will also have their JS and IMG formats available in API, so the parameter impressionsScriptType will be renamed to scriptType.


The change will not be backward compatible.