Integrating with Campwire

  1. This is your tracking code. Place the code 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))))');
        tap('detect');
    </script>
    

    {{{{NO_ACCOUNT_ID_SET_MESSAGE}}}}

  2. Next, if you have not already done so, create a thank you page on your own website. Customers will be redirected here after a succesful purchase.

  3. Add 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))))');
        tap('conversion', params.cw_order_id, null, {meta_data: {email: params.cw_order_email }});
    </script>
    

    {{{{NO_ACCOUNT_ID_SET_MESSAGE}}}}

  4. Next, configure your return url in Campwire. Go to your Campwire deal settings and add the url for the thank you page in the Custom thank you page (URL) field.

  5. Hit save and you are done!

Important

Please remember to test a conversion before starting your program. This way you can verify that tracking has been set up correctly. You can create a test conversion by following the steps described here.

Start a 14-day free trial with all our features enabled

Start now