Connecting GoHighLevel brings your contacts, opportunities and appointments into Wexlyn. This page is the other half: tracking on the pages GoHighLevel hosts, so every opt-in, booking and sale lands on the ad that brought the person.
There are four places to set up, and the same two ideas run through all of them. The Wexlyn script is on the page, and every hand-off to a next page carries the person's email and phone.
Before you start
Have two things ready to paste.
Your Wexlyn script. In Wexlyn open Tracking → Universal Script and copy the code.
The ending for redirect addresses. It hands the person's email and phone to the next page:
?email={{contact.email}}&phone={{contact.phone}}
In GoHighLevel, make sure you are in the right sub-account before you change anything.
1. Funnels and websites
- Open Sites → Funnels (or Websites) and open the funnel you want to track.
- Go to its Settings tab.
- Under Tracking & scripts, paste the Wexlyn script at the very top of Head tracking code. If other codes are already there, a Meta pixel for example, leave an empty line or two between them so they stay apart.
- Scroll to the bottom and press Save.
One paste covers every step of that funnel. Do the same for each funnel and each website in the sub-account.
2. Forms
A form runs inside its own frame, and the script on the page around it cannot see inside that frame. So the form gets the script too, and it sends people on to a next page.
- Open Sites → Forms and open the form.
- On the Edit tab, find Html in the element list (under Customized) and drag it to the very top of the form.
- Click the element, press Edit HTML, paste the Wexlyn script into the Custom JavaScript / HTML window and press Yes, Save. Then press Save on the form.
- Open the Settings tab. Under On Submit, choose Redirect to URL in place of Message.
- Enter the address of the next page, with the ending added:
https://yoursite.com/next-step?email={{contact.email}}&phone={{contact.phone}}
- Press Save.
3. Surveys
A survey works like a form, with one difference: the Html element goes on the slide where the person types their email and phone.
- Open Sites → Surveys and open the survey.
- Scroll to the slide that holds the email and phone fields.
- Drag Html to the top of that slide, press Edit HTML, paste the Wexlyn script and press Yes, Save. Then press Save.
- Open the Settings tab. Under On Submit, choose Redirect to URL and enter the next page's address with the same ending.
- Press Save.
If the survey sends people to different pages depending on their answers, GoHighLevel's conditional logic takes precedence over this setting. Add the ending to each of those addresses as well.
4. Calendars
- Open Calendars → Calendar settings and press the pencil on the calendar to edit it.
- Open Advanced settings → Form & confirmation.
- Under Confirmation page, choose Redirect URL in place of Thank you message.
- Enter the address of your thank-you page, with the ending added:
https://yoursite.com/thank-you?email={{contact.email}}&phone={{contact.phone}}
- Press Save changes.
The thank-you page has to carry the Wexlyn script. A funnel step does once part 1 is done.
Why each piece matters
Form · survey · calendar
in the builder's frame
Wexlyn tag as HTML inside
Redirect to the next page
/thank-you?email={{contact.email}}&phone={{contact.phone}}
Next page
tag reads email and phone from the URL
avery@… → Meta › Hook A
No inline "thank you" messages: a redirect is what lets the sale or the call on the next page land on the person who opted in.
- A redirect, not a message. A redirect gives Wexlyn a page view with the person on it. A "thank you" message shown in place leaves them inside the frame, where nothing can follow them.
- The script inside the form or survey. It is what captures the email and phone as they are typed, because the script on the surrounding page cannot see into the frame.
- The ending on the address. GoHighLevel swaps
{{contact.email}}and{{contact.phone}}for the real values when it redirects. The Wexlyn script on the next page reads them the moment it loads and ties the person to the source that brought them, so the sale on that page, or the call booked from it, lands on the same lead.
If the address already has a question mark in it, join the ending with & instead of ?.
Check it works
- Open your funnel in a private window with
?utm_source=teston the address and opt in with a test email. - In Wexlyn, open that person under CRM → Leads and switch Live on at the top of the Journey. The visit, the opt-in and the next page appear within a few seconds.
- The Check script button under Tracking → Universal Script confirms the script on any address you enter.
The same rules for other builders are in Install the Wexlyn script.