I need to capture the real-time personalization event in sitecore, capture the data and send to the google analytic through JavaScript API(using DataLayer).
Scenarios
Capture the event when Sitecore assign the pattern card to the visitor of the website and send this information to google analytic though JavaScript ? like unique visitor id, profile name, etc..
Capture the event when Sitecore hit the personalization rule and send this information to google analytics through JavaScript? Like UniqueVisitorID, ProfileName, PatternName, New rendering ID , or ruleId etc..
I just gone through the Bas Lijten blog, which is pretty much similar with my requirement. http://blog.baslijten.com/realtime-personalization-monitoring-with-sitecore-and-google-analytics/
Any though, ideas or previous experience for the same type of requirement and solution?