From b10e721bc912dafd01b878ec69fcac26135c5e80 Mon Sep 17 00:00:00 2001 From: BenDz Date: Tue, 19 Feb 2019 16:47:57 +0100 Subject: [PATCH] Adback method name changed Precise pre-requisites --- README.md | 4 ++-- adback.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c113358..a5b0ed6 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ This plugin allows you to send AT Internet hits blocked on end-user browsers, th ## Pre-requisite * An account on [Adback.co](https://landing.adback.co/) -* The usage of first-party user id in your smarttag.js -* The activation of Callbacks in your smarttag.js file (default to true) +* The usage of first-party user id in your smarttag.js (default since 5.10.0) +* The activation of Callbacks in your smarttag.js file (default) ## Usage diff --git a/adback.js b/adback.js index 97a63ed..89bc64b 100644 --- a/adback.js +++ b/adback.js @@ -9,7 +9,7 @@ window.ATInternet.Callbacks.Adback = window.ATInternet.Callbacks.Adback || funct var protocol = ""; if (hitAt.indexOf("http") != 0) { protocol = isSecure ? "https:" : "http:"; } hitAt = protocol + hitAt; - window.parent[window.parent.document.getElementById("adback_data").getAttribute("data-adback")].API().sendXitiPixel(hitAt); + window.parent[window.parent.document.getElementById("adback_data").getAttribute("data-adback")].API().sendATInternetPixel(hitAt); }); }; window.ATInternet.Utils = window.ATInternet.Utils || {dispatchCallbackEvent: function() {}};