Skip to content

Commit d822330

Browse files
authored
Merge pull request #16 from logicwind/dev
Dev
2 parents 3797445 + 6fc8d1c commit d822330

File tree

6 files changed

+387
-199
lines changed

6 files changed

+387
-199
lines changed

CHANGELOG.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
## 0.3.11
2+
3+
- Fixed Apple TVOS crash issue.
4+
- Enhanced Debug Logging
5+
- Added trackGoal method. With trackGoal, you can track when a visitor completes a specific objective.
6+
7+
## 0.3.10
8+
9+
- Fixed crash issue related to not passing dimention parameter.
10+
11+
## 0.3.9
12+
13+
- Fixed the crash issue on trackMedia function while pass dimension option.
14+
15+
## 0.3.8
16+
17+
- Refined dimensions data passing
18+
19+
## 0.3.7
20+
21+
- Added trackCustomDimension method for track individual custom dimension tracking
22+
23+
## 0.3.6
24+
25+
- Fixed issue in custom dimension tracking.
26+
27+
## 0.3.5
28+
29+
- Added custom dimension property in media tracking
30+
31+
## 0.3.4
32+
33+
- Added trackCampaign method. Using which you can track generic and matomo UTM attribution
34+
35+
## 0.3.3
36+
37+
- Added support to pass matomo auth-token.
38+
- Sometime facing issue related to authentication for older events. More info [Here](https://matomo.org/faq/how-to/faq_30835/)
39+
40+
## 0.3.2
41+
42+
- Media tracking progress's attribute typo fix.
43+
44+
## 0.3.1
45+
46+
- Media tracking added.
47+
- Use trackMediaEvent method to track audio and video related details
48+
49+
## 0.3.0
50+
51+
- Added enableTracking & disableTracking methods to opt in or opt out of tracking. Replacement of setIsOptedOut method.
52+
- Updated readme.
53+
**~~~~~ BREAKING CHANGES ~~~~~**
54+
- Removed setIsOptedOut and added 2 separate methods (enableTracking, disableTracking) to work independently
55+
56+
## 0.2.2
57+
58+
- Crash fixes. case: when trying to track event before initialising of tracker.
59+
- Can start new session now using startSession method.
60+
- Can enable logs using setLogger method.
61+
62+
## 0.2.1
63+
64+
- Compilation error fixed on android platform
65+
66+
## 0.2.0
67+
68+
- React-native plugin for Matomo Analytics. Developed based on `matomo-sdk-android` and `matomo-sdk-ios`.
69+
- The plugin should allow you to track screens, events, searches, impressions, users, visitors, etc.
70+
71+
## 0.1.0
72+
73+
- React-native plugin for Matomo Analytics. Developed based on `matomo-sdk-android` and `matomo-sdk-ios`.
74+
- The plugin should allow you to track screens, events, searches, impressions, users, visitors, etc.

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,34 @@ trackCustomDimension({
505505

506506
```
507507

508+
### trackGoal()
509+
510+
With trackGoal, you can track when a visitor completes a specific objective on your website, such as signing up for a newsletter, completing a purchase, or clicking a call-to-action. Each goal is defined in the Matomo dashboard with a unique Goal ID, and can optionally include a revenue value to track the monetary impact of conversions.
511+
512+
Using trackGoal, you can measure how many users convert on a specific goal, analyze conversion rates, and understand which pages, campaigns, or referrers are driving those conversions.
513+
514+
A goal can be triggered with a simple call by passing the required Goal ID, and optionally a revenue amount. Make sure your goal is configured in the Matomo Goals settings before tracking. Learn more about [how to set up goals in Matomo.](https://matomo.org/faq/reports/create-a-goal-in-matomo/)
515+
516+
* Goal Id (Recommended): `goalId`
517+
<br>The unique ID of the goal you defined in the Matomo dashboard.</br>
518+
519+
* Revenue (Optional): `revenue`
520+
<br>The monetary value associated with the goal conversion (e.g., purchase amount)</br>
521+
522+
#### Example
523+
524+
```js
525+
526+
trackGoal(
527+
2, // goalId
528+
49.99, // revenue
529+
[
530+
{ key: "1", value: "CheckoutSuccess" }
531+
]
532+
);
533+
534+
```
535+
508536

509537

510538
## Methods
@@ -573,7 +601,7 @@ Click on “Create new token”
573601

574602

575603
## react-native-matomo-tracker is crafted mindfully at [Logicwind](https://www.logicwind.com?utm_source=github&utm_medium=github.com-logicwind&utm_campaign=react-native-matomo-tracker)
576-
We are a 130+ people company developing and designing multiplatform applications using the Lean & Agile methodology. To get more information on the solutions that would suit your needs, feel free to get in touch by [email](mailto:[email protected]) or through or [contact form](https://www.logicwind.com/book-call?utm_source=github&utm_medium=github.com-logicwind&utm_campaign=react-native-matomo-tracker)!
604+
We are a 130+ people company developing and designing multiplatform applications using the Lean & Agile methodology. To get more information on the solutions that would suit your needs, feel free to get in touch by [email](mailto:[email protected]) or through or [contact form](https://www.logicwind.com/contact-us?utm_source=github&utm_medium=github.com-logicwind&utm_campaign=react-native-matomo-tracker)!
577605

578606
We will always answer you with pleasure 😁
579607

ios/ReactNativeMatomoTracker.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ @interface RCT_EXTERN_MODULE(ReactNativeMatomoTracker, NSObject)
2525

2626
RCT_EXTERN_METHOD(trackScreens)
2727

28-
RCT_EXTERN_METHOD(trackGoal:(NSInteger)goalId withRevenue:(float *)revenue)
28+
RCT_EXTERN_METHOD(trackGoal:(NSInteger)goalId withRevenue:(NSNumber *)revenue withActionDimensions:(NSArray<NSDictionary *> *)actionDimensions)
2929

3030
RCT_EXTERN_METHOD(setVisitorId:(NSString *)id)
3131

32-
RCT_EXTERN_METHOD(setIsOptedOut:(BOOL)isOptedOut)
32+
// RCT_EXTERN_METHOD(setIsOptedOut:(BOOL)isOptedOut)
3333

3434
RCT_EXTERN_METHOD(setLogger)
3535

0 commit comments

Comments
 (0)