GTM - How to Setup Revshare Tracking

Requirements:

  • Clicks must be tracking to the Maropost Affiliate ID

  • Conversion must fire to Maropost Revshare Affiliate ID (4045) and back to the Internal Media Buyer/Affiliate that generated the sale. Payout amount should be at 50% of the CPA set on the offer.

 

Steps:

  1. Create a Revshare Conversion Tag for Affid 4045 - DFO - Maropost - Revshare

    <!--Affid Remarketing - Maropost RS ID - 4045 - ORANGE--> <script type="text/javascript" src="https://{{domain2}}/scripts/sdk/everflow.js"></script> <script type="text/javascript"> EF.conversion({ offer_id: {{S4}}, adv1: {{CRM Order Id}}, coupon_code: '4045RS{{S4}}', parameters: { "payout_amount": {{REPLACE_WITH_50%_of_CPA}}, "revenue_margin": 0, } }); </script> <--! Parameter Guide--> {domain2} // Tracking domain where conversion will be registered ** Must not match tracking domain in domain1 or EF tracking link {S4} // Offer ID from URL {CRM Order ID} // Order ID from CRM

     

  2. Create a Revshare Conversion Tag for Affid X - Internal Media Buyers and Affiliates

    <!--Affid Original - Affiliate or Media Buyer ID - ORANGE--> <script type="text/javascript" src="https://{{domain2}}/scripts/sdk/everflow.js"></script> <script type="text/javascript"> EF.conversion({ offer_id: {{S4}}, adv1: {{CRM Order Id}}, coupon_code: '{{MB-Revshare-ID}}RS{{S4}}', parameters: { "payout_amount": {{REPLACE_WITH_50%_of_CPA}}, "revenue_margin": 0, } }); </script> <--! Parameter Guide--> {domain2} // Tracking domain where conversion will be registered ** Must not match tracking domain in domain1 or EF tracking link {S2} // Affiliate ID Original {S4} // Offer ID from URL {CRM Order ID} // Order ID from CRM

     

  3. Create Revshare Trigger Logic

     

    Page URL contains ERS=Y // Required in order to prevent pixelmator script from firing Page URL contains Widget=Y // Required in order to ensure lead came from widget S2 does not match RegEx (ignore case) 1474/1728 // Prevents revshare on DFO owned leads Page URL matches RegEx (ignore case) Affid=1474|Affid=1728 // Indicator that DL is from Maropost ID

     

  4. Create Variables in GTM

    1. {domain2} - second tracking domain required for attributing conversions to Affid Original + Affid RM Revshare

    2. {s2} - the parameter where Affid Original will be passed

    3. {s4} - the parameter that contains the offer ID

    4. {CRM Order ID} - variable to record the OrderID on these sales, in order to avoid duplicate sale issues.

    5. {{REPLACE_WITH_50%_of_CPA}} - create a new variable named ‘Revshare CPA - Offer X'