Adding the Prodio Tracker in Multiple Languages
The Prodio tracker can be integrated into various frameworks and languages. Below are examples for different platforms:
_document.js
import { Html, Head, Main } from 'next/document';
import Script from 'next/script';
export default function Document() {
return (
<Html>
<Head>
<Script
src="https://collector.Prodio.com/script.js"
strategy="afterInteractive"
data-website-id="YOUR_WEBSITE_ID"
onLoad={() => console.log('Prodio script loaded')}
onError={(error) => console.error('Prodio script failed to load:', error)}
/>
</Head>
<body>
<Main />
</body>
</Html>
);
}
Accessing the Tracking Code in Prodio
Once you add a website in Prodio, you can obtain the tracking code using the following steps:
-
Navigate to the Highlights page in Prodio.
- Click the Get Tracking Code button.
-
Alternatively, click View Details for the website.
- Under the Info section, navigate to the Tracking Code tab.
- Copy the tracking code provided.
-
Another option is to go to the Products section.
- Click the View CTA button, which redirects you to the Overview page.
- From there, navigate to the Info page and select the Tracking Code tab to find the tracking code.
💡
For detailed guidance, visit our Prodio Help Center or contact support.
Last updated on