Skip to main content
Test JS pixel integration
Natalya Yefimenko avatar
Written by Natalya Yefimenko
Updated over 7 months ago

Once you've set up your pixel and your campaign, you need to make sure it works properly. Test your pixel code to get a successful test conversion as a result.

Before you begin

Test pixel integration

⚠️ In general, you can perform only the following steps: 2 → 6 → 9. If the conversion was recorded correctly, you don't need other steps. But if something goes wrong, go through all the steps to know the issue.

  1. Prepare your browser for a test.

    Google Chrome

    1. Right-click and select the Inspect option.

    2. In the Network tab, enable the Preserve log and Disable cache options.

    Screen Recording 2022-07-29 at 09.02.42.79 AM

    Safari

    a. In Settings > Advanced, click Show Develop menu in the menu bar.

    b. Right-click and select Inspect element.

    c. In the Network tab, enable the Preserve Log and click the Disable cache icon.

  2. Follow the Test tracking link in Campaign setup > Integration setup > Perform a test click.

  3. Check the click_id in the URL of the page where you landed. Click_id should be unique.

    27be52ec-818f-4013-8020-84fab5845434

  4. Check whether your click is recorded correctly.

    On Reach, select Statistics > Clicks and search for the click with the same click_id:

    • The Publisher field should be empty.

    • The Click date should match the time of success page loading.

    36f486bc-270c-49bc-a0a0-994a75e92903

  5. Check rchclick in cookies.

    After you follow the link in step 3, the Landing page pixel records the click_id value to the cookies.

    1. To check it, open the Application tab in the Developer tools.

    2. Click Cookies and select the right website.

    3. Search for rchclick.

    4. Check the value. It should be the same as in the URL.

      38e0b853-f5d2-4a66-a3e8-dd4981226230

  6. Go to the success page to perform the necessary actions (make an order, create a lead, etc.).

⚠️ Make sure an advertiser can cancel these actions afterward.

Usually, you can reach the success page once. To repeat a test, reload the page using the same address. This triggers the Success page pixel and you don't make new orders every time.

⚠️ If you use Safari, your landing and success pages should share the same domain. Otherwise, the integration can fail to work correctly.

7. Check the Success page postback.

The Success page pixel sends a postback with the previously recorded click_id.

a. To check it, open Network > Img in the Developer tools.

b. Search for reach.

c. Select success.jpg.

d. Open Headers.

e. Check the parameters:

f. Status code is 200 (means success).

g. In the Request URL, click_id is the same as in the landing page URL (see step 5).

h. If you use additional postback parameters, they should also be present in the Request URL with proper values.

d9afde04-ebed-476f-8eb3-fc12893f23ec

8. Check the postback log.

On Reach, select Statistics > Postback log and search for your postback.

Successful postback example:

c770bffd-27d2-45f3-a40f-f736800ab814

An example of an unsuccessful postback that contains a decline reason:

5da36879-3e76-499d-9462-8f9b439f301d

9. Check whether your conversion is recorded correctly.

On Reach, select Statistics > Conversions and search for the conversion with the same click_id:

  • The Publisher field should be empty.

  • The Conversion date should match the time of success page loading.

129656f3-e60e-4815-b93a-bc7a0cfc942d

What to do next


Please contact the Affise Customer Support team regarding all raised questions via the e-mail: [email protected].

Did this answer your question?