Setting Up A Facebook Pixel The Easy Way! Use Smart Tracking

On this page
  1. Set Up Meta Pixel Tracking with UpHex Smart Tracking
  2. 1. Open the client's tracking setup
  3. 2. Install the Smart Tracking script
  4. 3. Configure the pixel
  5. 4. Create a conversion rule
  6. Choose a trigger that matches the action
  7. 5. Review server-side forwarding
  8. 6. Verify tracking and campaign optimization separately

Set Up Meta Pixel Tracking with UpHex Smart Tracking

Smart Tracking uses one website script to load configured tracking tags and fire conversion events based on your rules. Installing the script, selecting a pixel, defining conversion rules, and configuring campaign optimization are separate steps.

1. Open the client's tracking setup

  1. Open the client in the agency UpHex interface.

  2. Under Integrations, confirm that the intended Facebook account is connected.

  3. Open the client's Campaigns page and use the code icon labeled Tracking when available.

  4. On Tracking Codes, open Smart Tracking.

Older instructions may refer to a More tab inside the client's dashboard. Use the current tracking controls instead.

In a white-label client portal, tracking is under Reporting → Tracking when enabled. The portal's Review Tracking Setup control is not the agency's conversion-rule editor. Ask your agency to configure rules if you do not have access to that editor.

2. Install the Smart Tracking script

  1. In the Installation section, click Copy Code.

  2. Install the exact copied snippet in the website's <head> section on every page you want to track, including the landing page and any thank-you page used by a rule.

  3. Publish the website changes.

Your website builder may provide a site-wide header-code field or require a header-script integration. Use its current installation instructions rather than assuming every builder has the same settings path.

Check for an existing installation first. Do not add duplicate scripts or a second manual pixel installation without reviewing how events will be fired.

If UpHex displays Unable to load tracking code, refresh the page or contact support. Do not substitute a snippet from another client.

3. Configure the pixel

  1. In the agency interface, click Configure rules at the top of Tracking Codes, or Configure Conversion Rules inside the Smart Tracking tab.

  2. In Pixel Configuration, review Facebook Pixel ID and select or enter the intended pixel.

  3. If the setting is inherited from the agency, review the inherited value before choosing a client override.

  4. Click Save Configuration and check for success or an error.

Smart Tracking loads the pixel from its configuration. Copying the website script alone does not prove that the correct pixel is configured.

4. Create a conversion rule

  1. Under Conversion Rules, click Add Rule.

  2. Enter a clear Rule Name, such as Thank You Page Lead.

  3. Choose a Trigger Type and complete its matching fields.

  4. Select the intended Facebook Event, such as Lead. Leaving it as None (no Facebook event) does not configure a Facebook event for that rule.

  5. Review server-side forwarding as described below, then click Create Rule.

Choose a trigger that matches the action

  • Page View: Use Page URL Matching to identify a confirmation page. For example, Contains with /thank-you can match URLs containing that path. Choose a pattern specific enough to avoid unrelated pages.

  • Form Submit: Use Form Selector (optional) to target a particular form. Leaving it blank or entering any matches all forms on the page. Test the actual website form before relying on this rule.

  • Click: Supply the target's CSS Selector. A click is not automatically proof that a form was successfully submitted.

Additional trigger options include Phone / SMS link (click intent), Time on Page, and Scroll Depth. A phone-link click measures intent, not a connected call.

A thank-you-page rule measures visits to that page. Make sure the page represents the completed action you intend to count.

5. Review server-side forwarding

There are separate configuration-level and rule-level controls:

  • In Pixel Configuration → Server-Side Tracking, review Enable Facebook Conversions API (CAPI), or the inherited agency CAPI setting. Save configuration changes with Save Configuration.

  • On the rule, review Enable server-side event forwarding (Meta CAPI / Google Data Manager). Save a new rule with Create Rule, or an edited rule with Update Rule.

A checked forwarding box is not proof of successful delivery, Meta attribution, or a matching UpHex lead count. Verify the resulting events and investigate any errors separately.

6. Verify tracking and campaign optimization separately

  1. Visit the published website and perform the intended action.

  2. Check that the expected event reaches the intended pixel in Meta Events Manager.

  3. Check for duplicate events and confirm that the rule does not fire for unrelated actions.

  4. Separately review the campaign's goal, pixel or dataset, and conversion event.

Creating a tracking rule does not automatically change a running campaign's optimization settings. UpHex's existing-ad editor displays those conversion and optimization settings as read-only.

If the campaign needs a different optimization setup, contact support with the client, campaign, website URL, and intended conversion action before changing or relaunching it.

Smart Tracking simplifies installation, but it does not eliminate all Meta account, permission, event-verification, or attribution checks.