Everflow JS SDK / Direct Linking Guide - Facebook / Google Ads : Helpdesk

Everflow JS SDK / Direct Linking Guide - Facebook / Google Ads


Overview

Direct Linking allows you to send traffic directly to a landing page and start tracking that user without needing to use an Everflow tracking link, which uses re-directs. This is especially relevant when buying from Facebook or Google Ads. We enable you to do this Direct Linking by placing the Everflow SDK on your landing page, which is a JavaScript tag that both fires off a click tracker while fingerprint tracking the user.

Example 1: You're promoting an advertiser, https://demoAdv.com, through buying Facebook ads. You create a new offer in your system, OID # 5, and a Partner account associated with Facebook, AFFID # 12. In Facebook, you set up the campaign with the destination URL of https://demoAdv.com/efLP/?oid=5&affid=12. When the user reaches the landing page, the Everflow SDK JavaScript (JS) tag fires off click tracking for that Offer & Partner ID. When the user converts on the website, the conversion tracking code returns the successful conversion to your Everflow dashboard.

Example 2: You're promoting demoADV, but you don't have access to their landing page for placing the JS Tag. You can instead send them to your own landing page with the Everflow SDK on it, the click tracker will collect the users information, and then landing page links to demoADV.com. When the user converts on demoADV, our conversion tag will match up the user and then fire off the successful conversion to your dashboard.  

A How-To Guide

1) Place the Everflow SDK JavaScript Tag on the destination landing page where you will be sending traffic:

<script type="text/javascript" src="https://(Domain in your standard tracking links)/scripts/sdk/everflow.js"></script>

<script type="text/javascript" >
EF.click({
   offer_id: EF.urlParameter('oid'),
   affiliate_id: EF.urlParameter('affid'),

   transaction_id: EF.urlParameter('tid'), // Optional. This information will only be collected when a standard Everflow tracking link redirect delivered them to the page. When received: This will act as a normal tracking setup. When not received: the tracking will be handled by the OID and AFFID.

// Optional.  You can hard code additional information to be tracked with the click. EX: sub1: 'Facebook', (In order to pass, you need to move that section above the // Optional section)
   sub1: '',
   sub2: '',
});
</script>

 1a) For setting up the first section, pull a tracking link for your offer and copy the domain listed inside. EX: If you tracking link format is: https://everflow-advertiser-demo.tapptrk.com/28KL6/2CTPL/, then you would use:src=“https://everflow-advertiser-demo.tapptrk.com/scripts/sdk/everflow.js”

1b) Please note: TID only works when you set up your Offer with the destination URL format to include ?tid={transaction_ID}

2) You will need to place the following JavaScript tag on your base conversion’s confirmation page. Please note: ID needs to be set manually in the JS tag:

<script type="text/javascript" src="https://(Domain in your standard tracking links)/scripts/sdk/everflow.js"></script>

<script type="text/javascript">
EF.conversion({<span class="fr-marker" data-id="0" data-type="false" style="display: none; line-height: 0;"></span><span class="fr-marker" data-id="0" data-type="true" style="display: none; line-height: 0;"></span>
       offer_id: [Your Offer's ID], // Required. 

       transaction_id: EF.urlParameter('tid'), // Optional. Returned from partners using an Everflow tracking link redirect.

       amount: 0, // Optional. Purchase amount used for RPS offers - your Shopping Cart may be able to generate this dynamically.

       coupon_code: '', // Optional. Coupon code used - your Shopping Cart may be able to generate this dynamically.
  })
</script>

 2a) If you have additional Events that you would like to track. You will need to also place this code on those confirmation pages, and add the following section to your JS tag: event_id: [your event ID], 

3) Create Partner accounts for all media buying channels you will be using with Direct Linking.

4) Set up your offer in Everflow, set the destination URL to include ?tid={transaction_ID} to enable standard Everflow tracking links to work normally.

5) For the target URL in your media buying platform, you must append to the URL: ?oid=(ID for this offer)&affid={Media Channel Partner's ID)

6) You're all set and ready for testing!

Advanced Tips

Campaigns with Multiple Points of Entrance - If you have several different ways users will reach the advertisers' websites, such as multiple landing pages that you're testing, then you will need to place the same SDK JS Tag on every single one of the landing pages.  

Campaigns with Multiple Events - As mentioned above, you will need to place the conversion tag on the confirmation page for each successful Event's conversion, and manually update the JS Tag to match up the Event ID with the ID listed in your Offer's setup.

Google Ad Buying - You can instead use Parallel Tracking for tracking this channel, if preferred- [See Parallel Tracking Guide].  

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.