Dan Phillips
2025-01-30 23:37:40

API Only Touchpoints

In some cases, there may be an action on your site that you want to have pass information into LeadsRx, but it isn't a bottom funnel event that you want to make a conversion. Some form completions may fall into this category. In these cases, you may create a touchpoint that uses our API and passes the form data without diluting the impact of your conversions.

Creating API ONLY Touchpoints to Pass Data

  1. Using the settings icon at the top right of any page, select SETTINGS -> TOUCHPOINTS.
  2. Select TRACK A NEW TOUCHPOINT.
  3. Click API ONLY.
  4. Name the new touchpoint. Add an optional description. 
  5. In most cases, you may ignore the custom weighting section (for Algorithmic Multi-touch Attribution).
  6. SAVE.
  7. You may now find the ID number for the touchpoint (campaignID) by checking the list at the bottom of your LeadsRx API information page.
  8. Also on that LeadsRx API information page, you will find the system defined fields that can be used to pass data. Choose those that are applicable to your situation.
  9. Please note that the placeholders like "PUT_FIRST_NAME_HERE" need to be replaced by the dynamic variables used on your forms or contained in your website's data layer.
  10. Remove any variables you will not need.
  11. This Javascript may be placed on the HTML of your website or through a tag tool such as Google Tag Manager.
  12. Make sure this Javascipt fires AFTER our Universal Conversion Tracking Pixel.

Sample Javascript Call

<script type=“text/javascript”>
   var _lrx_profile = {
      “firstName”: “PUT_FIRST_NAME_HERE”,
      “lastName”: “PUT_LAST_NAME_HERE”,
      “email”: “PUT_EMAIL_HERE”,
      “phone”: “PUT_PHONE_NUMBER_HERE”,
      “leadValue”: “PUT_MONETARY_VALUE_HERE”,
      “orderID”: “PUT_UNIQUE_ORDER_ID_HERE”
    };
    _lrx_sendEvent(‘touchpoint’, INSERT_TOUCHPOINTID_HERE, null, JSON.stringify(_lrx_profile));
</script>

 

0 out of 0 found this helpful.

Related Articles

Articles In This Folder