Skip to content

Web Experience - Debugging

1. Integration Checklist

To assist with the setup of your Powered by Cardlytics Web Experience, Cardlytics provides a checklist to help debug and verify your integration.

The checklist can be reached by passing the encoded JWT authentication payload to your marketplace URL with a modified checklist path. Instead of setup in the path, you would modify the path to use checklist as shown in the URL sample below.

1
https://poweredby.dosh.com/partners/<marketplace>/checklist/<encodedPayload>

2. Debug Logging

For further assistance or insight into your integration efforts, you can enable debug logging. Once enabled, additional log output can be found in your browser's console while navigating to and around the Powered by Cardlytics Web Experience. To enable debug logging, add an additional attribute called debugLoggingEnabled with a value of true to the encoded payload string that is passed to the setup route.

1
2
3
4
5
6
7
8
const base64encode = btoa;
const payloadString = JSON.stringify({
    jwt: 'example-jwt',
    debugLoggingEnabled: true
});

const encodedPayload = base64encode(payloadString);
console.log(encodedPayload); // prints out "eyJqd3QiOiJleGFtcGxlLWp3dCIsImRlYnVnTG9nZ2luZ0VuYWJsZWQiOnRydWV9"

which would result in the following anchor tag:

1
2
3
<a href="https://poweredby.dosh.com/partners/<marketplace>/setup/eyJqd3QiOiJleGFtcGxlLWp3dCIsImRlYnVnTG9nZ2luZ0VuYWJsZWQiOnRydWV9">
    View Rewards
</a>