FAQ
In this document PriceSpy is used as a placeholder for your local PriceSpy site, e.g. prisjakt.nu, pricespy.co.uk, hintaopas.fi, ledenicheur.fr etc.
How can I check that I integrated the pixel successfully?
As a developer, you can check that the pixel is correctly integrated on your site by following these steps:
1. Find one of your offers on PriceSpy's site and click on it
The pixel can only track conversions coming from PriceSpy, so you can't test it without first going through PriceSpy.
2. Check that pjclid
is present in the URL
After having clicked on one of your offers in step 1, you will be redirected to your site. Check that the URL contains pjclid
. This is required for tracking the conversion.
Here is an example of what that could look like:
https://www.example.com/my-product?pjclid=66e7f85d-64f9-45b3-a775-622922ca3cf5
Troubleshooting: If you don't see pjclid
in your URL, then it is most likely that your pixel is not enabled. Pixels can be enabled in the Business Center.
3. Check that the pjpixel script is available on your site
After having been redirected to your site from PriceSpy, open the developer tools in your web browser and check that the pixel script is available by typing pjpixel
in the developer console and press the enter key.
It should return an object with a few methods, simlar to this:
> pjpixel
{clear: ƒ, getConversion: ƒ, init: ƒ, track: ƒ}
Troubleshooting: If pjpixel
isn't available in the console, verify that you have included the JavaScript snippet correctly, and that there are no JavaScript errors in the page's console.
4. Make a purchase
On your thank you page, you should invoke pjpixel.track
.
Tip: Take advantage of the optional eventId
feature. It helps you identify the test, and it prevents the same conversion from being reported twice if you happen to reload the thank you page. If you try to report the same conversion twice, you will receive an error.
5. See the conversion in Business Center
Log into Business Center and navigate to conversions. You should be able to see your test conversion there within moments.