Replies: 1 comment 1 reply
-
We only use the standard functionality offered by those scripts, which does enough for our needs
Don't see the relevance of that in relation to your question
Yes, your code sums it up globally. Have not checked each and every step of course. But again, this is what we need and is by no means the way of implementing this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Since the Fluent UI demo site is open source, I can view the source code and briefly check the parts related to Google Analytics and Microsoft Clarity. However, I cannot find any implementation that manually tracks user navigation.
So, my first question is: does it actually work correctly and track all user navigation events?
Also, as I understand, the demo site uses an older structure of a Blazor project.
My second question is about implementing analytics functionality in a standard Blazor web app with auto render mode.
What should I add to the default template to implement the analytics functionality similar to what the demo site has?
As I understand:
First of all, I need to add functionality similar to the demo, with cookie preferences.
This is implemented as a bunch of files in the folder
Cookies(https://github.com/microsoft/fluentui-blazor/tree/f11be437332d09f51b3c553efd45229b31961114/examples/Demo/Shared/Components/Cookies).I should also should register the following services in both the client and server projects:
Finally, I should add the CookieConsent component to MainLayout.
and App.razor looks like
Question:
Will this setup work as expected, or how should I properly implement a navigation tracker, since many people on the internet say it is necessary?
Also, where should I place Cookies folder (which project: client ot 3 shared project)? If shared, then which type of this project should be used so?
Beta Was this translation helpful? Give feedback.
All reactions