You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-20Lines changed: 26 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,32 +30,32 @@ Run `npx pod-install`. Linking is not required in React Native 0.70 and above.
30
30
31
31
Run `npx pod-install`. Linking is not required in React Native 0.70 and above.
32
32
33
-
### Create Custom dimension
33
+
### Create Custom dimension
34
34
35
-
Dimension contains a key and a value, and where the key is a custom dimension id created on the Matomo dashboard and the value should be a string, you'll need to ensure that the dimensions array is processed correctly. [create custom dimension](https://matomo.org/faq/reporting-tools/create-track-and-manage-custom-dimensions/)
35
+
Dimension contains a key and a value, and where the key is a custom dimension id created on the Matomo dashboard and the value should be a string, you'll need to ensure that the dimensions array is processed correctly. [create custom dimension](https://matomo.org/faq/reporting-tools/create-track-and-manage-custom-dimensions/)
36
36
37
37
38
38
## Usage
39
39
40
40
```js
41
-
import {
42
-
createTracker,
41
+
import {
42
+
createTracker,
43
43
setUserId,
44
-
setVisitorId,
45
-
trackDispatch,
46
-
trackDownload,
47
-
trackEvent,
48
-
trackImpression,
49
-
trackInteraction,
50
-
trackScreen,
51
-
trackSearch,
44
+
setVisitorId,
45
+
trackDispatch,
46
+
trackDownload,
47
+
trackEvent,
48
+
trackImpression,
49
+
trackInteraction,
50
+
trackScreen,
51
+
trackSearch,
52
52
disableTracking,
53
-
enableTracking,
53
+
enableTracking,
54
54
startSession,
55
55
trackMediaEvent,
56
56
trackCampaign
57
57
} from'@logicwind/react-native-matomo-tracker';
58
-
58
+
59
59
```
60
60
61
61
### createTracker()
@@ -64,10 +64,10 @@ The createTracker function is used to instantiate a tracker object for Matomo an
64
64
65
65
<!-- If you want to create matomo auth_token refere this link https://matomo.org/faq/general/faq_114/ -->
66
66
67
-
#### note
67
+
#### note
68
68
for matomo-url madatory to add `/matomo.php` end of url.
@@ -451,7 +451,7 @@ trackMediaEvent function use to monitor user interactions with media content, su
451
451
| mediaHeight | The resolution height of the media in pixels. Only recommended being set for videos. |
452
452
| mediaFullScreen| Should be 0 or 1 and defines whether the media is currently viewed in full screen. Only recommended being set for videos. |
453
453
| mediaSE | An optional comma separated list of which positions within a media a user has played. For example if the user has viewed position 5s, 10s, 15s and 35s, then you would need to send 5,10,15,35. We recommend to round to the next 5 seconds and not send a value for each second. Internally, Matomo may round to the next 15 or 30 seconds. For performance optimisation we recommend not sending the same position twice. Meaning if you have sent ma_se=10 there is no need to send later ma_se=10,20 but instead only ma_se=20. |
454
-
| dimensions| Dimension contains a key and a value, and where the key is a custom dimension id created on the Matomo dashboard and the value should be a string, you'll need to ensure that the dimensions array is processed correctly. [create custom dimension](https://matomo.org/faq/reporting-tools/create-track-and-manage-custom-dimensions/)
454
+
| dimensions| Dimension contains a key and a value, and where the key is a custom dimension id created on the Matomo dashboard and the value should be a string, you'll need to ensure that the dimensions array is processed correctly. [create custom dimension](https://matomo.org/faq/reporting-tools/create-track-and-manage-custom-dimensions/)
With Custom Dimensions you can assign any custom data to your visitors or actions (like pages, events, site search, ...) and then visualize the reports of how many visits, conversions, pageviews, etc. there were for each Custom Dimension.
550
550
551
-
Dimension contains a key and a value, and where the key is a custom dimension id created on the Matomo dashboard and the value should be a string, you'll need to ensure that the dimensions array is processed correctly. [create custom dimension](https://matomo.org/faq/reporting-tools/create-track-and-manage-custom-dimensions/)
551
+
Dimension contains a key and a value, and where the key is a custom dimension id created on the Matomo dashboard and the value should be a string, you'll need to ensure that the dimensions array is processed correctly. [create custom dimension](https://matomo.org/faq/reporting-tools/create-track-and-manage-custom-dimensions/)
@@ -609,7 +609,7 @@ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the
609
609
610
610
<br>To generate a token_auth follow these steps:</br>
611
611
612
-
* Log in to Matomo
612
+
* Log in to Matomo
613
613
* Go to the Matomo Admin through the top menu
614
614
* Click on Personal -> Security
615
615
* At the bottom of the page click on “Create new token”
@@ -630,6 +630,12 @@ Click on “Create new token”
630
630
631
631
</details>
632
632
633
+
634
+
## 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)
635
+
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)!
636
+
637
+
We will always answer you with pleasure 😁
638
+
633
639
## License
634
640
635
641
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details
0 commit comments