Capture UTM tags, Google and Facebook click IDs, referrer and landing page on your Retreat Guru registration form, hidden from guests, and send them to your CRM through our API.
Retreat Guru forms can fill in any question from the link that opens the form. You add a question for each tracking value, your website puts the values into the Register link, and a small piece of CSS hides those questions from guests. The values are saved with the registration like any other answer.
Create a text question for each value below and add it to your registration form. Leave every one of them not required, so a guest who arrives without tracking values never gets an error on a question they can't see.
When a visitor lands on your website, keep their tracking values (for example in a cookie). Then add them to every Register or Book now link that points to Retreat Guru, in this format:
https://your-site.secure.retreat.guru/program/your-program/?form=1 ®istration[utm-source]=google ®istration[utm-medium]=cpc ®istration[utm-campaign]=spring-retreat ®istration[utm-term]=somatic+healing+retreat ®istration[utm-content]=ad-variant-a ®istration[gclid]=EAIaIQobChMI... ®istration[fbclid]=IwAR... ®istration[referrer]=https%3A%2F%2Fwww.google.com%2F ®istration[landing-page]=https%3A%2F%2Fyour-website.com%2Fretreats
Use hyphens in the link: utm-source, landing-page and so on. URL-encode values that contain links or spaces.
Go to Appearance › Customize › Custom Header (CSS/JS) and add this to the end of what's already there:
<!-- Marketing tracking questions: filled from the link, hidden from guests -->
<style>
.rs-question-utm-source-row, .rs-question-utm-medium-row,
.rs-question-utm-campaign-row, .rs-question-utm-term-row,
.rs-question-utm-content-row, .rs-question-gclid-row,
.rs-question-fbclid-row, .rs-question-referrer-row,
.rs-question-landing-page-row { display: none !important; }
</style>
Each value is saved on the registration. Your team can see it in the registration admin, and your integration can read it from the Retreat Guru REST API.
The API returns each value with an underscore in its name:
| In the link | In the API | What it holds |
|---|---|---|
| registration[utm-source] | utm_source | Where the visitor came from, e.g. google, facebook, newsletter |
| registration[utm-medium] | utm_medium | The channel, e.g. cpc, social, email |
| registration[utm-campaign] | utm_campaign | The campaign name |
| registration[utm-term] | utm_term | The paid search keyword |
| registration[utm-content] | utm_content | Which ad or link variation |
| registration[gclid] | gclid | Google Ads click ID |
| registration[fbclid] | fbclid | Facebook / Meta click ID |
| registration[referrer] | referrer | The site that sent the visitor to you |
| registration[landing-page] | landing_page | The first page they visited on your site |
Webhooks don't include form answers. A Retreat Guru webhook tells your system that a registration was created or changed, and includes a link to it in the API. Your integration then fetches the registration from the API to get these values.