Tracking codes let you insert custom code (HTML/JavaScript) into specific sections of your page, commonly used for analytics tools like Google Tag Manager or social media ad tracking.
Add tracking code to a Kartra page
- Open your page in the Page Builder
- Click Settings in the left side menu
- Click Tracking Codes
- Enter your tracking code in the appropriate section:
- Header: Inserts code into the <head>, wrapped in <script>. (JavaScript only. HTML is automatically stripped.)
- Body: Places code in the <body>, wrapped in a <div>.
- Footer: Inserts code in the <footer>, wrapped in a <div>.
Facebook Ads Tracking
There’s a dedicated field for Facebook Ads tracking, which places code inside the <body>, enclosed in a <div>.