API - (Advanced) Advanced Tracking via Tracking Script

Go to System Settings > System > Tracking:

<script 
  iname="YOUR_LICENSE"
  src="https://YOUR_LICENSE.sprinthub.app/js/shubfull.min.js"
  burl="https://sprinthub-api-master.sprinthub.app">
</script>

You will have access to your Tracking Script as shown above. You can insert this Script into any website or web system, always inside the tag <body> and/or before closing the </body>.

With this script, you will send browsing information of your Leads into your SprintHub. Every Lead who visits a site containing this Script will generate an Anonymous Lead inside the SprintHub, which will track all the pages this Lead visited.

If on the same day or after some days this Lead returns to your site and decides to sign up on a form, where this Lead registration will be sent into your SprintHub, the system will perform a Merge between the Anonymous Lead from the past and the new Lead that just registered. In other words, you can know exactly what this Lead did on your site even before they became an identified Lead in the SprintHub.

Therefore, if you are not using a Landing Page created in SprintHub, it is highly recommended that you add this script to your site and/or system.

Now the more advanced part! (For developers)

Let's say you have an E-commerce or your own System where your Leads log in with username and password. It is possible, via the tracking script, to create and/or identify the Lead who logged in using the email or username.

Obviously you need to have access to the variables in your system that bring that information to the browser. With these variables in hand, you can send to SprintHub via the tracking script:

Example:

The variables inside {{ }}, are examples from any given system. You will need to know the system to understand how and what these variables are.

The script above must come AFTER the main tracking script. But both need to be inside <body>.

Once done, you will be identifying your Lead inside the SprintHub, since they may access your system from a browser/device that does not have Tracking.

If the Lead above has the same email as an existing Lead, you can merge the information from both inside the SprintHub automatically or manually.

The Advanced Tracking method above can be used, for example, for cart recovery.

Imagine the following hypothetical but common situation: The Lead enters your site (ecommerce), logs in and starts adding products to the Shopping Cart. They reach Checkout and when faced with the shipping cost, they abandon completing the purchase.

With the Advanced Tracking of the SprintHub properly configured, you are already sending this information to the SprintHub. The cart items, for example, you can send as Tags or as Custom Objects. This way, you can create an Automation flow where the SprintHub can send an email or WhatsApp to this Lead after 1 hour of cart abandonment, containing a discount coupon so they return and complete their purchase.

This is just AN example, but the possibilities are diverse.

NOTE: If you use proprietary systems such as WooCommerce, Magento, Hotmart, Vtex, where you probably will not know the variables to send to SprintHub, we recommend doing this via API, using platforms like N8N, Zapier or Make.

Last updated

Was this helpful?