Skip to content

Is it possible to set a custom domain #1

Answered by ScarletKuro
KristaNEO asked this question in Q&A
Discussion options

You must be logged in to vote

What I believe you could do is to copy paste the script to wwwroot:
https://github.com/ScarletKuro/Blazor.GoogleTagManager/blob/main/src/Blazor.GoogleTagManager/wwwroot/GoogleTagManager.js

Change the domain on your own one, and during setup disable ImportJsAutomatically and import your own script manually:

<script src="_content/{you_assembly_name}/GoogleTagManager.js"></script>

don't forget to replace the you_assembly_name with your project name.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@KristaNEO
Comment options

@ScarletKuro
Comment options

Answer selected by KristaNEO
Comment options

You must be logged in to vote
2 replies
@ScarletKuro
Comment options

@KristaNEO
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants