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

  1. Open your page in the Page Builder
  2. Click Settings in the left side menu
  3. Click Tracking Codes
  4. 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>.