Track visits to specific pages (via links, contained text, or automatically for ecommerce)

This guide is designed for users who are not familiar with code or CSS selectors. It will walk you through setting up the "Page Visit" goal to track when a user reaches a specific URL, finds certain text, or views e-commerce content.


Guide: Tracking Visits to Specific Pages

The "Page Visit" goal allows you to record a tracking event every time a user views a page that matches the criteria you define (URL, contained text, or type of e-commerce content).

1. Activating the Goal

1. Access the edit screen of your Tracking Project.

2. Click on the Goals section in the top navigation bar.

3. Locate the Page Visit action box.

4. Click the Activate button within the box.

2. Configuring the Tracking Criteria

After activating the goal, you need to define which page(s) you want to track. Each "Link" block represents a separate tracking criterion.

In the first block, use the dropdown menu under the label Track via* to choose how to identify the page:

A. Tracking Via Destination Link

This method is ideal if you know the exact URL of the page you want to track.

1. In the Track via* field, select Via destination link.

2. In the field below labeled Full link:

  • You can type in the full URL of the page.
  • You can select the URL from the suggested list if your site has already been scanned.
  • Note: You can enter multiple links separated by commas in this field to track the same event on different URLs.

B. Tracking Via Contained Text

This method is useful if the page you want to track does not have a fixed URL but always contains specific text (e.g., a title, a thank-you phrase).

1. In the Track via* field, select Via contained text.

2. In the Text contained on page field, enter the exact phrase or word that must be present on the page for the event to be recorded.

C. Automatic Tracking for E-commerce (Only for Framework360 sites)

If you have an active E-commerce module, you can automatically track product or category views without specifying URLs or text.

1. In the Track via* field, select one of these options:

  • Ecommerce product view: Automatically tracks whenever a user views a single product page.
  • Ecommerce category view: Automatically tracks whenever a user views a category listing page.

D. Manual Tracking (Advanced)

This option requires manually inserting JavaScript code.

1. In the Track via* field, select Manually track action.

2. Follow the instructions provided in the Code to include box that appears (see Section 4 for External Tracking setup).

3. Adding Extra Data (Optional)

If you are tracking content pages (such as product sheets or articles) and want to send additional data (like title and value of viewed content), you can configure Extra Data.

These fields are especially useful for e-commerce tracking or sending dynamic information to external systems (like Facebook or Google).

Within the Do you want to send extra data? box, you can define selectors for:

  • Content Title: Enter here the selector (or use the magic wand icon to visually select it) of the element containing the name or title of viewed content.
  • Content Value: Enter selector of element containing monetary value of content (e.g., product price).
  • Product/Category ID: Enter selector of element containing unique ID of product or category.

4. Enabling External Tracking (Pixel)

To send this "Page Visit" event to external platforms (such as Google Analytics, Meta Ads, TikTok, etc.):

1. In the link configuration block, locate the Third-party Tracking section.

2. Check the Enable box.

3. The Tracking Preferences panel will appear showing all platforms configured in your project’s initial phase.

4. For each platform (e.g., Meta Ads, Google Analytics), you can customize sent parameters (e.g., event_name, value, currency).

5. Save Changes

After configuring all tracking criteria and external preferences:

1. Scroll down to bottom of page.

2. Click on Save button to activate changes.

The goal is now active and will start recording visits to pages matching your specified criteria.