# Installing the Pixel

To take advantage of Primer's conversion tracking, particularly our [Lift Analysis](https://support.sayprimer.com/primer/learn-more/conversion-lift-analysis-beta), you need to install the Primer Web Script (aka a website tracking script). Below are instructions.&#x20;

#### Get your customized tracking script on the [Connections](https://my.sayprimer.com/connections?tab=Website%20Tracking) page

Visit the Connections Page --> [Website Tracking](https://my.sayprimer.com/connections?tab=Website%20Tracking) tab to find your customized script.

<figure><img src="/files/jQS2RIXGQXsOQw8YJ90l" alt="" width="563"><figcaption></figcaption></figure>

Copy the Primer snippet below and paste it in the`<head>`of your website or see instructions below for installing via Google Tag Manager.

#### Google Tag Manager Installation

**Step 1: Create Google Tag Manager Tag**

* Log in to [Google Tag Manager](https://tagmanager.google.com/)
* Navigate to "Tags" section
* Click "New" to create a new tag

<figure><img src="/files/jcmMiZLucWs330lUt3zy" alt=""><figcaption></figcaption></figure>

* Choose "Custom HTML" as the tag type

<figure><img src="/files/9BHRoPjXYVDFkBlaAJ37" alt=""><figcaption></figcaption></figure>

* Paste your prepared script (from step 1) into the HTML field

<figure><img src="/files/BQIS2TqjXUYf9diI1CCa" alt=""><figcaption></figcaption></figure>

**Step 2: Set Up Triggers**

* In the tag configuration, click on the "Triggering" section

<figure><img src="/files/NtMW8VPHzFwctGreUl6k" alt=""><figcaption></figcaption></figure>

* Click the "+" to add a new trigger
* Choose "Page View" as the trigger type

<figure><img src="/files/LmSU8ImQtqzqX8OxEy6r" alt=""><figcaption></figcaption></figure>

* (Optional) Under "This trigger fires on", specify the URLs to run the script on
  * For example: "Page URL" contains "/marketing/"
  * Or list specific pages: "Page Path" equals "/landing-page-1/"

**Step 3: Name your tag & hit "Save"**

<figure><img src="/files/c6V7O684sbGQVjknTZbZ" alt=""><figcaption></figcaption></figure>

**Step 4: Press Submit to publish the new tag**

<figure><img src="/files/ATwl4PgPpRbZv7YW7cXl" alt=""><figcaption></figcaption></figure>

**Step 5: Final Steps:**

* Navigate to your own website to fire the script
* Navigate back to <https://my.sayprimer.com/connections?tab=Website%20Tracking> and verify the connected the connected status.
* Debug: If connected status not seen, repeats steps a and b again. Inspect the site to ensure pixel is installed and firing, etc.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.sayprimer.com/primer/connections/connecting-the-primer-pixel/installing-the-pixel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
