To add Google Analytics, a Meta (Facebook) pixel, a chat widget or any other script, paste it into the item's Code screen. Each course, product, membership, showcase and community has its own.
Paste your code into a course, product, membership or community
- Open the item, and in the tool rail select Setup, then Code.
- Paste analytics and tracking tags, such as Google Analytics or a pixel, into Head code. It runs first, before the page draws.
- Paste chat widgets and pop-ups into Body code. It runs last, after the page has drawn.
- Select Save changes.
- Repeat this on every other item you want to track. Code saved on one item doesn't reach the others.
- 1 Paste analytics and tracking tags into Head code.
- 2 Paste chat widgets and pop-ups into Body code.
- 3 Select Save changes.
Each box holds up to 50,000 characters.
Where does the code run?
- A course: its public pages, its checkout and every lesson a student opens.
- A product: its public pages, its checkout and the library a buyer opens.
- A membership or showcase: its public pages, its checkout and the pages people see once they have access.
- A community: its join page and every page a member opens inside it.
Add tracking code to a landing page
- Open the landing page and select the Tracking tab.
- Paste tags into Head code and widgets into Body code. They run on your sections and on Your HTML alike.
- To count signups, paste the code that should fire for each one, such as a pixel's Lead event, into Conversion code. It runs once per signup, on the page a visitor sees after signing up through one of this page's forms.
- Select Save changes.
If the landing page sits on a domain whose homepage is a course, product, membership or community, that item's code runs on your sections too, and the tab tells you so.
Track sales on a checkout page
A checkout page has its own Tracking screen under Setup, for that page's purchases: a Conversion code that runs once per order, ready-made sections for Meta Pixel, TikTok Pixel, Google Analytics and Google Ads, and boxes for your own code. An item's own tag still goes on its Code screen, and every checkout page selling that item runs it too. See Track sales with a pixel on your checkout page.
Can I add code once for my whole account?
No. Code belongs to one item, so paste the same snippet into each course, product, membership, community and landing page you want to track. There's no code box for your customer page or its sign-in page.