Skip to content

Commit 6b13944

Browse files
updated readme.md and version bump to v0.3.11
1 parent 9a544dd commit 6b13944

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

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+
### trackCustomDimension()
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@logicwind/react-native-matomo-tracker",
3-
"version": "0.3.10",
3+
"version": "0.3.11",
44
"description": "React-native plugin for matomo analytics",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

0 commit comments

Comments
 (0)