How to Install the Crazy Egg Tracking Code on Microsoft SharePoint

This is for internal SharePoint sites, especially those behind a login.

Before You Begin:

Microsoft SharePoint has various configurations—online, On-Premise, and hybrid setups. Not all pages are protected behind a login, and site customization levels vary.
This guide outlines the most common manual installation method, which works well if:

  • Your SharePoint site is internal (i.e., requires login)
  • You have access to edit the page layout or template
  • You want to track user behavior with Crazy Egg

🛠️ Not sure what kind of SharePoint setup you have?
Work with your internal IT team or SharePoint administrator to confirm.

Method: Manual Installation

You’ll manually install the tracking code since automatic script injection isn’t supported on SharePoint. Here’s how:

Go to Install Crazy Egg > I can install Crazy Egg myself and copy the full tracking script

Access your SharePoint page layout or master page. This may require admin or designer permissions. Edit the page’s HTML

Paste the tracking code before the </head> tag. Locate the closing </head> in the HTML and paste the Crazy Egg script just before it. Save and publish your changes

    If your SharePoint site uses a global layout or template, placing the script once will apply across multiple pages.

    Verifying Installation

    If your site is behind a login, Crazy Egg’s crawler won’t be able to reach it on its own. Follow the notes in How to Check That Crazy Egg Is Installed.

    Creating Snapshots for your Pages (behind a login)

    • After installing the script, log in to your site in a browser.
    • Use Crazy Egg’s Page Camera to capture a Snapshot from your logged-in view manually

    This allows Crazy Egg to track the page, even though it’s not publicly accessible.

    FAQ’s

    If so, you must use Page Camera (see above).

    Crazy Egg may not be able to track content within frames.  Try installing the Crazy Egg script inside the iFrame.

    Some setups may block script insertion. Check with your IT team to confirm that the tracking code can be added.

    Was this article helpful?

    Related Articles

    Need Support?

    Can’t find the answer you’re looking for? Don’t worry we’re here to help!

    Submit a request