Skip to content
0
Solved1 answers

Where should I install the OptinStack script?

Daniel Kimasked Jan 12, 2026

I have Google Tag Manager, analytics, and a few marketing scripts in my page head. Where exactly should I add OptinStack, and can I use async or defer so it does not slow down the page?

installationtracker-blockingruntime
1 Answers5 Views

Your Answer

1 Answer

0
Best answer

Add the OptinStack runtime as the first element inside <head>, before GTM, analytics, advertising scripts, or third-party embeds. Do not add async or defer to the OptinStack script. Loading it synchronously and early gives the runtime its best opportunity to apply the published consent rules before later resources run.

Use the installation snippet generated in your dashboard because it already contains the correct project ID. If a tag manager or platform injects a Tracker above OptinStack, that resource may run before consent enforcement is available.

Documentation: Install OptinStack and Integration patterns.

OptinStack TeamTeam
Jan 12, 2026