Reputation: 1926
The client has purchased a MaxMind license and I have received a license number. I have also been able to verify the license by hitting the MaxMind webservice directly. However, I have not been able to find anywhere in the configuration to put the license number.
I found the following line in Sitecore.Analytics.config
which looks promising but am not sure if I should simply replace the {1}
with my license number. Is this the right place to do this?
<setting name="MaxMind.Url" value="http://sitecore1.maxmind.com/app/sc?i={0}&l={1}" />
For reference, some of my custom business logic is based on the visitor's geolocation, here is some sample code:
var cv = Sitecore.Analytics.Tracker.CurrentVisit;
var lat = cv.Latitude;
var lng = cv.Longitude;
However lat
and lng
almost come out as 0 - which is when I realized we need the license.
Sitecore.NET 6.5 (rev. 121009)
Upvotes: 0
Views: 742
Reputation: 17000
There is a setting in sitecore/includes/Sitecore.Analytics.config
<!-- MAXMIND SECURITY TOKEN
Security token from MaxMind.
Default: "00000000"
-->
<setting name="MaxMind.SecurityToken" value="00000000" />
Set the value to your purchased license (using a patch:config).
http://www.theinsidecorner.com/en/Marketers/SitecoreDMS/EngagementAnalytics/MaxMindSettings
Upvotes: 3