#3819 closed New feature (fixed)

JS Tracking client: add appendToTrackingUrl function to let user specify: visitor id,IP,datetime, lat/long, geolocation,etc.

Reported by: matt Owned by: mattab
Priority: normal Milestone: 1.12 - The Great 1.x Backlog
Component: Core Keywords:
Cc: Sensitive: no

Description

Currently the JS API only implements these features that are "publicly" settable without "token_auth" authentication. For example the fields: visitor id,IP,datetime, lat/long, geolocation,etc. require authentication.

We will add a new appendToTrackingUrl() function to let user append Piwik Tracking API parameters to the URL in JS.

You may have to "Disable" the user authentication for setting these parameters. See: https://github.com/piwik/piwik/blob/master/config/global.ini.php#L411

Related to #3818

Change History (1)

comment:1 Changed 13 months ago by matt (mattab)

  • Owner set to mattab
  • Resolution set to fixed
  • Status changed from new to closed

In e794cb331a72133ea065edaa8b8cdc0a737a8d4f:

Fixes #3819

Fixes #3818: you can now call piwikTracker.appendToTrackingUrl('lat=X&long=Y');
_and_ disable auth in your config.ini.php

https://github.com/piwik/piwik/blob/master/config/global.ini.php#L411

+ Adding test

Note: See TracTickets for help on using tickets.