Skip to main content
All CollectionsIntegrations - Connect your accountsAST (Agnostic Sals Tracking) integration
How to troubleshoot your Upfluence’s agnostic sales tracking (AST) script
How to troubleshoot your Upfluence’s agnostic sales tracking (AST) script

Ensure your tracking script is correctly installed and recording sales

Updated this week

If you’ve installed Upfluence’s agnostic sales tracking (AST) script, but it’s not working, follow this guide to verify and troubleshoot your setup.

🔗 Before you begin:

Ensure the script is correctly installed on your e-commerce site: Upfluence sales tracking for any website

Step 1: Check that you’re using the correct affiliate link

  1. Go to your Campaign table view in Upfluence.

  2. Find the Affiliate Links column.

  3. Use one of these links for testing.

Step 2: Verify that the first script (tracking visits) is installed and loaded

This script should be placed inside the <head> of every page on your site.

How to check if the script is installed

  1. Go to your website’s homepage, right-click and select "Inspect".

  2. Click on "Elements" and check if the tracking script is visible.

  3. Click on "Sources" and confirm that the script is loaded.

    If the script is installed and loaded correctly, proceed to the next step 👇.
    If not, reinstall the script and ensure it’s displayed in the page source.

Step 3: Verify that the second script (tracking orders) is installed and triggered

⚠️ This script must be placed on the "Thank you" (order confirmation) page.

How to check if the order tracking script is installed

  1. Make sure the script is installed inside the <body> of the order confirmation page.

  2. Confirm that all required values (e.g., order_id, order_name, amount, currency) are correctly replaced according to your e-commerce store.

💡 Important:

  • The "Send orders" script must always be installed AFTER the "Load the script" script.

  • You can find the correct variables to replace by searching for "script variables" in YOUR CMS documentation.

Step 4: Test your script by making a test purchase

📖 Follow this guide: How to test your AST tracking setup

  1. Click your test affiliate link (it should redirect to your store).

  2. Add products to your cart, inspect the page (Right-click > "Inspect").

  3. Proceed to checkout and complete the purchase.

  4. Once on the order confirmation page, click on "Network" > "Fetch/XHR".

  5. Look for a "Fetch" event" with order data.

Step 5: Check for tracking issues

Scenario 1: The "Fetch" event is visible

This means the script has been triggered.

  1. Click on the "Fetch" event", then select "Payload" to see the data sent to Upfluence.

  2. Verify that all required fields are present:

    • order_name

    • order_id

    • amount

    • currency

If any required field is missing:

  1. Update the "Send orders" script to include the missing data with correct values (searching for "script variables" in your CMS documentation.).

  2. Refresh the page and verify that the values are now properly included.

Scenario 2: The "Fetch" event is missing

This means something is wrong with the "Send orders" script".

How to find the issue

  1. Click on "Sources" in the browser inspector.

  2. Find and open your page's source code.

  3. Search for "upf.push" to locate the "Send orders" script".

  4. Look for a 🔴 error icon next to missing or incorrect data. Common issues include:

    • Missing values

    • Missing quotes

    • String values instead of numbers

    In this example, the "order_id" was missing a single quote '

  5. Correct the wrong information by updating the values in the "Send orders" (the second) script installed.

  6. Once fixed, refresh the page and verify that the correct values are sent.

Did this answer your question?