We recommend manually installing the Sona SDK by copying the tracking script, then pasting it within the <head> tags of your site’s HTML code. This requires that you have the ability to edit your site's HTML. If not, you'll have to ask your web developer to install the script on different pages of your site.
You can also install the script via Google Tag Manager, but ad blockers can remove tracking scripts using this method which prevents you from capturing a significant portion of your visitor data.
To further improve tracking effectiveness, set up a Custom Tracking Domain, also known as a CNAME, to make it appear that the script is from your own domain instead of a Sona domain.
CNAME Configuration
CNAME Configuration
Sign in to the platform where your DNS is managed. This could be your domain name provider or a separate DNS provider such as GoDaddy, Hostgator, Cloudflare, etc.
Create a subdomain for your website or store domain
We recommend that you use sl as the subdomain.
As an example, if your domain is "mystore.com," then your subdomain would be sl.mystore.com
You should set the target value to t.sonalabs.com
For additional assistance in setting up a CNAME, here are additional help articles from DNS providers:
Note: For other DNS providers, you can follow the pattern described in any of the above articles. Proxies should be turned off as indicated below in the Cloudflare setup.
Once you have set up the CNAME with your DNS provider, you typically need to wait for approximately 24 hours for the change to propagate. After this waiting period, you can navigate to General > Tracking Pixel > CNAME Setup in the Sona Revenue Growth Platform, then proceed with step 5.
Enter the CNAME that you configured in the empty field under Add CNAME, then click Verify DNS. If the CNAME successfully propagated, the status will change to DNS verified with a green check next to it. The code snippet will also be updated with your CNAME instead of the default t.sonalabs.com domain.
Click Save.
Manually Install the Sona SDK
Manually Install the Sona SDK
Under Setup for Websites, choose whether the tracking script should capture form data or not. The code snippet will change based on your selection.
Click Copy to Clipboard.
Paste the tracking script in between the <head> tags of your site.
If you want to use the Sona SDK to track activity for a web app that requires users to log in, click Setup for Web Apps.