This page describes how to install tracking with Google Tag Manager (GTM).
There are several ways to retrieve your tracking codes.
This code should be placed on the landing page for each software, in order to track the number of users who arrived on this page from Appvizer.
Note: this code must be installed on all pages of the site to count visits to other pages.
This code must be placed on the page after validation of the form for each software, in order to track the number of conversions from Appvizer.
✅ These codes are already set up for your software.
Note: if you have several programs and several landing and validation pages, you must retrieve each of the two codes above for each software and for each page.
1 ️ ※ This first code must be placed on the landing page for each software, in order to track the number of users who arrived on this page from Appvizer.
<script type="text/javascript">
(function (w, d, id) {
if(w.av) { return; }
var ts = new Date().getTime();
w.avURL = w.avURL || 'https://appvizer.one';
w.avPool = w.avPool || [];
w.avPool.push({start: ts, id: id});
w.av = function () {w.avPool.push(arguments)};
var e = document.createElement("script");
e.async = true;
e.src = w.avURL + '/ariadne/v1/ariadne.js?ts=' + ts;
d.getElementsByTagName("head")[0].appendChild(e);
})(window, document, 'AP-XXXXX');
av("visit");
</script>
How do you know your software identifier (s)? The identifier follows the form “AP-XXXXX”: the number is in the URL of the profile editing page accessible from your personal account (see screenshot below).
In this example the identifier is “AP-25655” (AP- followed by the number). Each identifier corresponds to a software referenced in Appvizer. In some cases, you will need to use multiple codes.
2 ️ ※ This second code must be placed on the page after validation of the form for each software, in order to track the number of conversions from Appvizer.
<script type="text/javascript">
(function (w, d, id) {
if(w.av) { return; }
var ts = new Date().getTime();
w.avURL = w.avURL || 'https://appvizer.one';
w.avPool = w.avPool || [];
w.avPool.push({start: ts, id: id});
w.av = function () { w.avPool.push(arguments) };
var e = document.createElement("script");
e.async = true;
e.src = w.avURL + '/ariadne/v1/ariadne.js?ts=' + ts;
d.getElementsByTagName("head")[0].appendChild(e);
})(window, document, 'AP-XXXXX');
av("conversion");
</script>
If you have several applications on Appvizer, but only one landing page and/or one registration form for several applications, follow the procedure below to retrieve your tracking codes.
Appvizer does not recommend this method because for each completed form, one visit and one lead will be counted for all your software.
1 ️ ※ This first code must be placed on the landing page.
<script type="text/javascript">
(function (w, d, id) {
if(w.av) { return; }
var ts = new Date().getTime();
w.avURL = w.avURL || 'https://appvizer.one';
w.avPool = w.avPool || [];
w.avPool.push({start: ts, id: id});
w.av = function () { w.avPool.push(arguments) };
var e = document.createElement("script");
e.async = true;
e.src = w.avURL + '/ariadne/v1/ariadne.js?ts=' + ts;
d.getElementsByTagName("head")[0].appendChild(e);
})(window, document);
av("visit", {id: 'AP-XXXXX'});
av("visit", {id: 'AP-YYYYY'});
</script>
2 ️ ※ This second code must be placed on the page after validation of the form.
<script type="text/javascript">
(function (w, d, id) {
if(w.av) { return; }
var ts = new Date().getTime();
w.avURL = w.avURL || 'https://appvizer.one';
w.avPool = w.avPool || [];
w.avPool.push({start: ts, id: id});
w.av = function () { w.avPool.push(arguments) };
var e = document.createElement("script");
e.async = true;
e.src = w.avURL + '/ariadne/v1/ariadne.js?ts=' + ts;
d.getElementsByTagName("head")[0].appendChild(e);
})(window, document);
av("conversion", {id: 'AP-XXXXX'});
av("conversion", {id: 'AP-YYYYY'});
</script>
Adding a tag in GTM allows you to insert the tracking code for visits into GTM.
For this:
To create a tag in GTM for tracking conversions, the process is the same as for visits, you just need to change the title of the tag: “Appvizer conversions” and the content of the code (see Step 1).
The trigger in GTM is the event that allows you to launch the beacon connected to it. For the Visits, the trigger is very simple: “all page views”.
This means that the tracking of visits will be triggered on all pages viewed by a Visitor. The trigger for Conversions is more complex to determine, we will see it next.
Creating a conversion tag follows the same process as creating visit tags.
However, the trigger depends on the conversion chosen (or conversions). You can add several conversions to the same tag, for example for the following conversions:
To create your trigger, click on the Bluest Plus (+) located at the top right on the Choose a trigger page.
Here is a list of the most used triggers:
“Page view” allows you to choose a specific page as the trigger.
For example: the Visitor arrives on a page whose url contains /thanks/ for confirming the sending of the form or /contact/:
Always save the changes and for them to be reflected on the customer's site, click on “Send” then “Publish” then “Continue”
To confirm the shipment, GTM displays a quote from the Dalai Lama with an animation.
Congratulations, you have installed your Appvizer tracking scripts on your website!
Example:
Now, check that the installation has been completed correctly to make sure you don't miss any leads.
{id: "AP-XXXXX", externalId: XXXXXXXX, event: "conversion"}<br>event: "conversion"<br>externalId: 1570191937253<br>id: "AP-XXXXX"
If the event field does not have the correct visit or conversion tag and the id field is not yours, the script is not well installed.
For more information on tracking scripts in Google Tag Manager, here is a series of dedicated articles: