Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

feat: implement custom dimension tracking #31

Merged
merged 14 commits into from
Nov 25, 2020

Conversation

janpe
Copy link
Contributor

@janpe janpe commented Nov 20, 2020

Implements: #18

@janpe janpe force-pushed the custom-dimension-tracking branch from c3e3322 to d1867e1 Compare November 20, 2020 10:13
@janpe janpe force-pushed the custom-dimension-tracking branch from d1867e1 to 7799060 Compare November 20, 2020 10:26
Copy link
Contributor

@aeirola aeirola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A good start. Would be nice to minimise the platform differences though, or at least write more documentation about them.

example/ios/Podfile.lock Outdated Show resolved Hide resolved
ios/PiwikProSdk.m Outdated Show resolved Hide resolved
src/__tests__/index.test.tsx Outdated Show resolved Hide resolved
src/index.tsx Outdated Show resolved Hide resolved
@aeirola aeirola self-assigned this Nov 20, 2020
@aeirola aeirola added the enhancement New feature or request label Nov 20, 2020
@aeirola aeirola linked an issue Nov 20, 2020 that may be closed by this pull request
@janpe janpe force-pushed the custom-dimension-tracking branch from b83a226 to 27b58a4 Compare November 24, 2020 09:55
Copy link
Contributor

@aeirola aeirola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The scope term still seems a bit ambiguous. I personally think it would be simplest to just limit setting the dimension to single track* functions, similarly to as proposed in #18 and what the Android SDK does https://developers.piwik.pro/en/latest/sdk/Piwik_PRO_SDK_for_Android.html#tracking-custom-dimensions. If there is a need for sticky custom dimensions they can maybe be implemented separately, or just handled by the library caller.

src/index.tsx Outdated Show resolved Hide resolved
src/index.tsx Outdated Show resolved Hide resolved
src/index.tsx Outdated Show resolved Hide resolved
@janpe janpe force-pushed the custom-dimension-tracking branch 4 times, most recently from 9340a33 to df0ab9c Compare November 25, 2020 06:11
@janpe janpe force-pushed the custom-dimension-tracking branch from df0ab9c to 7c7c43a Compare November 25, 2020 06:12
@janpe janpe force-pushed the custom-dimension-tracking branch from 60f95b4 to e9f75c9 Compare November 25, 2020 08:45
Copy link
Contributor

@aeirola aeirola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementation looking good now! Thanks for your efforts. Added some mentions about small things that could still be fixed if you feel up to it. Some more documentation, with maybe an example in README.md, might be nice to have as well.

Nonetheless, ready to merge this as it is if you don't happen to have more time to contribute.

example/src/App.tsx Show resolved Hide resolved
ios/PiwikProSdk.m Show resolved Hide resolved
@aeirola aeirola merged commit 248df5e into terveystalo:master Nov 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

Add custom dimension tracking
2 participants