Use the appvizer Conversion Script with WordPress

Table of Contents

  • Step 1: Create a Landing Page and a Thank You Page
    • Create a contact form
    • Create a redirection to the validation
  • Step 2: Insert the Appvizer Scripts in the Pages
  • Examples of Appvizer Scripts for 1 or 2 Software Applications

Step 1: Create a Landing Page and a Thank You Page

If you already have a landing page and a thank you page (post-conversion), proceed to the next step.

Create a contact form

To create a contact form (demonstration request, free trial…) install the Contact Form 7 plugin and activate it. Then go to “Contact” in the WordPress navigation menu and “Create a form”. Once completed, paste the form’s short code into the place where you want the form to appear in your Landing Page.

Create a redirection to the validation

To have Contact Form 7 redirect the user after he has validated the form, install the Contact Form 7 Redirection plugin. Edit your form and add the destination URL to the “Choose Page” list in the “Redirect Settings” tab.

Step 2: Insert the Appvizer Scripts in the Pages

WordPress does not natively allow you to put javascript in your pages. To do this, follow these steps:

  1. Add the Insert HTML Snippet plugin to your site
  2. Enable the plugin
  3. In the wordpress side menu, go to “XYZ Html”
  4. Click on “Add New HTML Snippet” > name the snippet “tracking-appvizer-visit” > paste the first script > Save
  5. Click on “Add New HTML Snippet” > name the snippet “tracking-appvizer-conversion” > paste the second script > Save
  6. Open your Landing Page and insert the “tracking-appvizer-visit” code into the page using the “HTML” icon located in the page editing menu and save.
  7. Open your thank you page and insert the code “tracking-appvizer-conversion” in the page with the ” HTML ” icon located in the page editing menu and save

Examples of Appvizer Scripts for 1 or 2 Software Applications

1. First code to be inserted on the landing page

The domain is to be checked on line 4 and the software identifier is to be modified on line 12:

<script type="text/javascript">
(function (w, d, id) {
var ts = new Date().getTime();
w.avURL = w.avURL || 'https://www.appvizer.com';
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>

Example with two software programs

The domain is to be checked on line 4 and the software identifiers are to be modified on lines 13 and 14

<script type="text/javascript">
(function (w, d, id) {
var ts = new Date().getTime();
w.avURL = w.avURL || 'https://www.appvizer.com';
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. Second code to be inserted on the conversion page

The domain is to be checked on line 4 and the software identifier is to be modified on line 12:

<script type="text/javascript">
(function (w, d, id) {
var ts = new Date().getTime();
w.avURL = w.avURL || 'https://www.appvizer.com';
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>

Example with two software programs

The domain is to be checked on line 4 and the software identifiers are to be modified on lines 13 and 14

<script type="text/javascript">
(function (w, d, id) {
var ts = new Date().getTime();
w.avURL = w.avURL || 'https://www.appvizer.com';
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); // Info : il n'y a plus d'identifiant ici
av("conversion", {id: 'AP-XXXXX'});
av("conversion", {id: 'AP-YYYYY'});
</script>