Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add osana only in production #287

Open
mariacha opened this issue Jul 18, 2024 · 1 comment
Open

Add osana only in production #287

mariacha opened this issue Jul 18, 2024 · 1 comment
Assignees

Comments

@mariacha
Copy link
Collaborator

mariacha commented Jul 18, 2024

Describe the bug
Wrap the call to the osana script in the twig template in a custom variable:

 {isOsanoEnabled
            <script src="https://cmp.osano.com/AzyfddTRtqi1560Dk/bbd879ba-792b-4caf-9a92-a17b920706f7/osano.js" />

This will make osana only be used on the live sites. (We can figure it out by looking for the Pantheon env variable.)

@mariacha mariacha self-assigned this Jul 22, 2024
@mariacha
Copy link
Collaborator Author

I've confirmed this on develop:
https://develop-wriflagship.pantheonsite.io/

in an anonymous window, there is no Osana popup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant