How to install an appvizer tracking script with Wordpress?

Several installation methods are possible depending on the site hosting the code.

Prerequisites

  • You need to know your software identifier (s) in the form “AP-XXXXX”. The identifier can be found in the URL of the profile editing page accessible from the seller account:
url-service
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.

Installing the script

Several installation methods are possible depending on the site hosting the code:

  1. Standard installation recommended by appvizer,
  2. Installation via Google Tag Manager,
  3. Installing in WordPress.

Method 3: installing on WordPress

The Appvizer tracking script is compatible with WordPress. Discover a way to set it up.

Checking your installation

To verify that the installation has been carried out correctly, here are the different steps:

  1. Open your browser console;
  2. Go to the 'Network' tab, then to the 'XHR' tab;
  3. Check the “Preserve logs” option;
Capture-d’écran-2019-10-04-à-15.20.34
  1. Trigger the event by refreshing the page for example;
  2. Look for the term “appvizer” in requests: a request called “external-event” of the post type must be present. If you cannot find these events, the script is not properly installed.
  3. Verify the details of the information sent. The details for a conversion event are as follows:
{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.

Advanced use

For advanced users, here is the release of the conversion tracking API. The global function av () accepts objects with the following properties:

 

Type Infos Valeurs Exemple
event string
type d'événement
visit, conversion "visit"

Example:

<script type="text/javascript">
  av({event: "visit", id: 'AP-1234'}); 
</script>

Compatibility

The global mechanism is compatible with all browsers except IE 11+ and, if compatibility mode is not activated, IE 7+.

Important note: the script is not compatible with PhantomJS or any other server-side rendering mode (SSR) that would not provide Window nor handout.