Comments (4)
Great idea, what would you propose code-wise? I was thinking of a configuration provider in which you can plug web.config but also other config systems like your own database or something
from googleanalyticstracker.
I was thinking of adding a new constructor with no parameters that defaults to getting values from web.config. Specifically in :
- GoogleAnalyticsTracker/ActionTrackingAttribute.cs
- GoogleAnalyticsTracker/Tracker.cs
And in web.config it would be like:
<appSettings>
<add key="GoogleAnalytics" value="UA-9999999-9" />
<add key="Domain" value="localhost.com" />
</appSettings>
I wasn't thinking of complicating it with a configuration provider because most projects I've seen don't store such data in database. A simple ConfigurationManager.AppSettings["GoogleAnalytics"] would suffice until someone else (like me) asks for getting values from database :)
from googleanalyticstracker.
This has been added. Add the GoogleAnalyticsTracker.TrackingAccount and GoogleAnalyticsTracker.TrackingDomain keys to your appsettings.
from googleanalyticstracker.
Sweeeet!!
from googleanalyticstracker.
Related Issues (20)
- Setting EventTracking.Value fails with InvalidCastException HOT 3
- Does this library support eCommerce transactions? HOT 2
- OS Version/Platform is not visible in Analytics HOT 4
- Significant (~5 seconds) delay on an attempt to Log an event if DNS isn't answering HOT 2
- Anonymous IP Address Support HOT 8
- Same builds v4.6.0 - v4.6.4 HOT 1
- Support for user IDs? HOT 7
- C# Winforms Example for Creating Unique Session HOT 2
- Is there an ASP.NET Core MVC 6 Sample? or will that not be included? HOT 2
- Does this library support Enhanced e-Commerce? HOT 7
- Dependency injection fails in a netcoreapp3.1 WebAPI HOT 3
- [Question] asp.net core CustomizeAnalyticsSession HOT 4
- Google Analytics has updated. HOT 11
- customDimensions parameter is required in TrackPageViewAsync and in the Example usage not HOT 1
- Trailing `&` may cause issues HOT 2
- implement a custom IAnalyticsSession HOT 8
- Please create a new release with updated dependencies HOT 2
- TrackerCore is showing version 1.0.0.0 instead of 7.0.0.0 HOT 2
- Google Analytics V4
- AspNetCoreTracker no documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from googleanalyticstracker.