JS Code
Integration code callbacks and hacks
Add customId to your subscribers
Add the code below to your HTML DOM Tree
Fetch subscriber ID after register
Our standard integration code allows to register callback for syncId event.
When subscribers "subscribe" you can receive ID without usage of our SDK
Switch for subscribe action instead of popup
It's possible to do that just add <input>
with type checkbox and id="ppg-switch"
.
You can hide popup by setting "delay popup time" to 999999s
Example code of toggle usage with styles you can see at: https://github.com/ppgco/examples/tree/master/sdk_toggle
Last updated
Was this helpful?