{"repo":"ScarletKuro/Blazor.GoogleTagManager","free":true,"listed":false,"github":"https://github.com/ScarletKuro/Blazor.GoogleTagManager","clone":"git clone https://github.com/ScarletKuro/Blazor.GoogleTagManager.git","description":"Google Tag Manager implementation for Blazor","language":"C#","stars":10,"topics":["analytics","google","gtm","manager","tag","blazor"],"license":"MIT","category":"analytics","readme_excerpt":"Blazor.GoogleTagManager This is a fork of Havit.Blazor.GoogleTagManager but without Havit.Core, since for Blazor WASM every byte counts. This library is trim friendly. 🎉 Release Notes Changelog 🚀Getting Started Register Services Blazor ServerSide or WASM Add Imports After the package is added, you need to add the following in your Imports.razor Add Components Add the following component to your MainLayout.razor NB! There is no need to add content/Blazor.GoogleTagManager/GoogleTagManager.js in indedx.html / Host.cshtml, the script is imported automatically. 📜Sample Usage For general use case, please refer to google tutorials or any other learning materials. Manual push Only if you need to trigger custom events from the code. In the razor component ⚙️Additional Settings Attributes You can add attributes, this can be useful for cookie consent then in your script you will see following Other useful links for consent settings: link1 link2 Query Parameters You can add query parameters to the Google Tag Manager script URL. This is useful for environment-specific values such as gtm auth and gtm preview . then in your script you will see following Use Attributes for HTML attributes on the tag and QueryParameters for values that must be appended to the GTM request URL. Debug to console You can enable debugging to the browser console. This helps to see whatever the library is initialized properly. Keep in mind that this will only output the events that is done by this library, it wil","default_branch":null,"files":null,"tree":[],"storefront":"/r/ScarletKuro","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ScarletKuro/Blazor.GoogleTagManager/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}