Skip to main content
All CollectionsIntegrations
Integrating with Campwire
Integrating with Campwire

Learn how to integrate Tapfiliate with Campwire.

Maria avatar
Written by Maria
Updated over a year ago

To integrate Tapfiliate with Campwire, you can follow the steps below or our Campwire integration guide here.

1. Implementing Your Tracking Code

Insert the provided code snippet just below the <body> tag of every page of your website:

<script src="https://script.tapfiliate.com/tapfiliate.js" type="text/javascript" async></script>

<script type="text/javascript">

(function(t,a,p){t.TapfiliateObject=a;t[a]=t[a]||function(){

(t[a].q=t[a].q||[]).push(arguments)}})(window,'tap');

tap('create', 'YOUR ACCOUNT ID', { integration: "campwire" });

tap('detect');

</script>

Ensure that you replace 'YOUR ACCOUNT ID' with your actual account ID.

2. Creating a Thank You Page (If Not Already Done)

If you haven't already, establish a dedicated thank you page on your website. This is where customers will be directed following a successful purchase.

3. Adding Tracking Code on the Thank You Page

Insert the following code just below the body tag of that page:

<script src="https://script.tapfiliate.com/tapfiliate.js" type="text/javascript" async></script>

<script type="text/javascript">

(function(t,a,p){t.TapfiliateObject=a;t[a]=t[a]||function(){

(t[a].q=t[a].q||[]).push(arguments)}})(window,'tap');

function getQueryParams() {

var assoc = {};

var decode = function (s) { return decodeURIComponent(s.replace(/\+/g, " ")); };

var queryString = location.search.substring(1);

var keyValues = queryString.split('&');

for(var i in keyValues) {

var key = keyValues[i].toString().split('=');

if (key.length > 1) {

assoc[decode(key[0])] = decode(key[1]);

}

}

return assoc;

};

var params = getQueryParams();

tap('create', 'YOUR ACCOUNT ID', { integration: "campwire" });

tap('conversion', params.cw_order_id, null, {meta_data: {email: params.cw_order_email }});

</script>

As before, remember to replace 'YOUR ACCOUNT ID' with your account ID.

4. Configuring Return URL in Campwire

Proceed to set up your return URL within Campwire. Navigate to your Campwire deal settings and input the URL of your thank you page into the 'Custom thank you page (URL)' field.

Afterward, click the 'Save' button to preserve your changes.

5. Testing Your Conversion

It is important to perform a conversion test before launching your program. This step allows you to confirm the accurate configuration of tracking.

You can initiate a test conversion by following the guidelines outlined here.

Did this answer your question?