Category: Application Performance Management
This integration is only available for Web projects
What to expect
This integration will allow you to investigate Sentry sessions in Contentsquare.
What we collect
Dynamic Variables
Key | Value | Data Type |
APM_ST_SessionID
|
{sessionID} | Text |
APM_ST_Performance Link
|
{performanceLink} | Text |
APM_ST_Issue Link
|
{issueLink} | Text |
What we send
Session replay
To properly make use of the replay feature you need to either have 100% collection ratio or ETR (Event Triggered replay), please talk to your CSM about this.
Requirements
Implementation
Implementation Steps
Please go to the section How to request an integration to see the instructions to enable this integration. You can then return here once completed.
If you have already completed the step above then continue below.
In order to use the full integration, please provide your Contentsquare CSM or support team with your Sentry login domain, for example: sentry.io. Please also provide the Sentry Organization slug and Project Name. This will allow you go from the Contentsquare session replay to the relevant Sentry session.
To obtain the Organization Slug go here:
To obtain the Project Name go here:
See usage instructions below.
If you have already completed the step above then continue below.
You will need to add code to your existing Sentry RUM tag that is injected into your site. Specifically in the Sentry.init function.
Note that the code below is something you should already have but you will need to perhaps add the beforeSend function and then inside it simply add the Contentsquare part of the code.
Sentry.init({ dsn: "--DSN--", tracesSampleRate: 1.0, beforeSend(event, hint) { /* *Name: Sentry / Contentsquare Integration *Version: 1.0.0 */ (function () { var eventPayload = event; function csCallback() { if (!disableCallback) { disableCallback = true; if (window.CS_CONF && CS_CONF.integrations_handler && CS_CONF.integrations_handler.sentry) { CS_CONF.integrations_handler.sentry(eventPayload); } } } var disableCallback = false; window._uxa = window._uxa || []; _uxa.push(["afterPageView", csCallback]); })(); //End Contentsquare Integration return event; }, });
Verifying it works
You can use the chrome extension to check the results are sent to CS
- Note that you will only see a replay link for those users who had replays created by Contentsquare.
- The % depends on the ratio your account has, you can have that increased by talking to your CSM.
Go to Issues then find any random issue you see and click on it. You can also find this in the Performance section if you have that enabled.
Inside the details of the issue you will see Contentsquare ReplayLink and SessionID.