Installing Tracking Tag in Volusion

If you use Volusion to host your online store, you'll need to correctly install the Perfect Audience site tracking tag before you can use Perfect Audience.

In your "Manage" menu,
click User Tracking.

This will pull up a page with a javascript tag. Look in the upper right corner of the screen for your Advertiser ID. Your Advertiser ID will be different than the one pictured here. Note this ID.



The following code can be pasted into your Volusion store's theme and will automatically setup product tracking for dynamic ads and conversion goal revenue and order ID tracking. You will also need to setup a conversion goal within Perfect Audience (see below).

Replace the three instances of AdvertiserID in the code with your ID from your account.

<script type="text/javascript">
if (location.pathname == "/ProductDetails.asp" ||
location.pathname.indexOf("-p/") != -1 ||
location.pathname.indexOf("_p/") != -1) {
  (function() {
    window._pa = window._pa || {};
    _pa.productId = global_Current_ProductCode; // OPTIONAL: Include product ID for use with dynamic ads
    var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;
    pa.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + "//tag.marinsm.com/serve/AdvertiserId.js";
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pa, s);
  })(); }

else if (location.pathname == "/OrderFinished.asp") {
  (function() {
    window._pa = window._pa || {};
_pa.orderId=Order[0];
_pa.revenue=Order[2] - Order[4] - Order[5];
    var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;
    pa.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + "//tag.marinsm.com/serve/AdvertiserId.js";
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pa, s);
  })(); }

else {
  (function() {
    window._pa = window._pa || {};
    var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;
    pa.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + "//tag.marinsm.com/serve/AdvertiserId.js";
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pa, s);
  })(); }
</script> 

Switch to your Volusion dashboard.
Click Design, then File Editor.

Select your html template
from the Shortcuts menu  on the right side of
the page or the dropdown menu on the left.
(Your file names may be different.)

Scroll to the bottom of the code.
Paste the code just above the </body> tag.

Scroll to the top of the page and press Save. 

Setup Your Conversion Goal

In Perfect Audience, go to Manage-> Create Conversion. Create a conversion goal with these settings:

Click Create Conversion Goal. You're done!

Wait for the e-mail! Now that your tag is on your Volusion store, you will receive an e-mail when our system starts seeing data. You can also check back to the Site Tracking Tag page to see if data is being received. This usually takes an hour or two. If you don't get an e-mail or see data on your tag page or Audiences page, double check that you've placed the tag in your web site code and pushed that code live. It can be easy to forget a simple step in there along the way.

If you have any problems, email support@perfectaudience.com

Feedback and Knowledge Base