Setting up Orion to work with Connatix
Below you will find the steps in order of how they should be completed with links to the sections below going into more detail.
Steps
Have the module enabled
Please let the Spiny team know before proceeding so we can enable this integration's module for your bundle. Once enabled you can proceed with this integration.
Update Bootstrap Code
In order to ensure Connatix impressions are counted by Spiny please update your bootstrap code in accordance with the following:
- Add
"reportConnatixPlayerAdImpression"
to theorionMethods
array.
<!-- Spiny.ai Orion Bootstrap START --->
<script>
// Add "reportConnatixPlayerAdImpression" to orionMethods
var orionMethods = ["init","registerPost","report","newPageView","setContext", "reportConnatixPlayerAdImpression"];
// ...rest of bootstrap code
</script>
<!-- Spiny.ai Orion Bootstrap END --->
Add Player Event Listener
When making the call to setup the Connatix player on page update your player render call to the following:
cnxps({ playerId: "<PLAYER_ID>" }).render("<RENDER_ID>", function(err,api){
if(!err){
api.on("adImpression", function(){
orion.reportConnatixPlayerAdImpression({ playerId: "<PLAYER_ID>" });
})
}
});
Replace the values <PLAYER_ID>
and <RENDER_ID>
with the corresponding IDs you have from Connatix.
Spiny Team Review
Once completed please add these changes to a staging site for our team to confirm and once approved please deploy the changes to your production environments.