Website Snippet
Reach attributes revenue to marketing activities using a business’s first-party data – we provide a lightweight javascript snippet that can be injected onto a customer’s public-facing landing page and tracks when a user lands on a business’s website (after clicking on a marketing link) and then later identifies themselves on that same site.Basic Installation
Please ensure you load this javascript snippet on every page in your app. Add the script to the<head>
section of your HTML and for optimal performance, place it as early as possible.
Embedding this snippet requires two parameters:
- PARTNER_HASH – a short, public-facing identifier assigned to your vertical SaaS platform by Reach. This will always be the same value – you can hard-code it into your application.
- TENANT_EXTERNAL_ID – the unique, case-sensitive business ID you use to identify businesses in your platform. Ideally, this is a value you already have available on any web pages that you host for your clients. Note: you will onboard the business to Reach when they opt-in to using Reach’s services in the Management UI.
Content Security Policy (CSP) Considerations
If you have implemented a strict Content Security Policy (CSP) you may need to update it for the Reach app to be successful. The script is loaded from https://public.embedreach.com and makes requests to https://api.embedreach.com. Assuming no other scripts on your website, an example strict CSP would look like this:Onboarding Businesses to Reach
Businesses will be automatically onboarded when they opt-in to using Reach’s services in the Management UI. The externalId used here should be the same as the externalId passed in as onBusinessCreate() in the Management UI documentation. If your platform does not manage website creation and management on behalf of your clients, they will be shown instructions during Reach’s onboarding flow for how to inject the snippet on the most common website creators.Cross-Domain Attribution
Sometimes, what looks like one website is actually on multiple domains – some common versions of this:- Client owns their website / landing page, but they redirect to another page hosted by the vertical SaaS platform (e.g. “online ordering”) where a user will put in their contact information.
- Client owns their website / landing page, but they embed an iframe hosted by the vertical SaaS platform (e.g. “request an estimate” or “schedule a call” form) where a user will put in their contact information.
Advanced Usage
The snippet is designed to support capturing several different types of form submissions. If you have a non-standard configuration that cannot be captured by the Reach snippet, you can use javascript to trigger an identification. Some examples of where this may be necessary:- The identification information is only available through a JavaScript event, such as a message from an iframe that does not have conversion tracking code (e.g. HubSpot Meetings, Acuity Scheduler)
- You want more control over which fields are sent to Reach and when