Alec Whittington wrote
It can be used by any module, you just need to use the proper api calls
Hi Alec,
thanks for answering. I think I'm using proper api calls, but probably miss something: I use an URLControl in my module, and see my urls are written to the UrlTracking table when I update my url:
Dim objUrls As New UrlController
Dim theURL As UrlInfo = objUrls.GetUrl(PortalId, ctlURL.Url)
objUrls.UpdateUrl(PortalId, ctlURL.Url, ctlURL.UrlType, ctlURL.Log, ctlURL.Track, ModuleId, ctlURL.NewWindow)
Then, when URL Tracking is enabled in the URL Control, I build my links as URLs that point to linkclick.aspx and pass a reference I biuld by calling Common.Globals.LinkClick:
Dim url As String = Common.Globals.LinkClick(myURL, PortalSettings.ActiveTab.TabID, myModuleId, True, True)
I can navigate the resulting url, or download files if it's of file type, without any problems, so I believe there are no errors in my code. But tracking and logging never get updated: I mean "linkclick.aspx" correctly resolves my urls, but it does not update statistics.
Must I do something more than this, to enable tracking and logging?
thanks,
al.