Skip to content

Commit a460b07

Browse files
BhaveshBhavesh
authored andcommitted
readme content update
1 parent 5f87382 commit a460b07

File tree

1 file changed

+26
-20
lines changed

1 file changed

+26
-20
lines changed

README.md

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,32 +30,32 @@ Run `npx pod-install`. Linking is not required in React Native 0.70 and above.
3030

3131
Run `npx pod-install`. Linking is not required in React Native 0.70 and above.
3232

33-
### Create Custom dimension
33+
### Create Custom dimension
3434

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/)
3636

3737

3838
## Usage
3939

4040
```js
41-
import {
42-
createTracker,
41+
import {
42+
createTracker,
4343
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,
5252
disableTracking,
53-
enableTracking,
53+
enableTracking,
5454
startSession,
5555
trackMediaEvent,
5656
trackCampaign
5757
} from '@logicwind/react-native-matomo-tracker';
58-
58+
5959
```
6060

6161
### createTracker()
@@ -64,10 +64,10 @@ The createTracker function is used to instantiate a tracker object for Matomo an
6464

6565
<!-- If you want to create matomo auth_token refere this link https://matomo.org/faq/general/faq_114/ -->
6666

67-
#### note
67+
#### note
6868
for matomo-url madatory to add `/matomo.php` end of url.
6969

70-
- **Generate Auth Token**
70+
- **Generate Auth Token**
7171
[Generate auth token guide here](https://matomo.org/faq/general/faq_114/)
7272

7373
#### Example
@@ -451,7 +451,7 @@ trackMediaEvent function use to monitor user interactions with media content, su
451451
| mediaHeight | The resolution height of the media in pixels. Only recommended being set for videos. |
452452
| mediaFullScreen| Should be 0 or 1 and defines whether the media is currently viewed in full screen. Only recommended being set for videos. |
453453
| 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/)
455455

456456

457457
#### Example
@@ -548,13 +548,13 @@ trackCampaign("Home screen","https://example.com/?mtm_campaign=2020_august_promo
548548

549549
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.
550550

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/)
552552

553553
#### Example
554554

555555
```js
556556

557-
trackCustomDimension({
557+
trackCustomDimension({
558558
dimensions:[{key:"1",value: "cf7fad2e-fae4-4c49-9924-ad9a2a7c50de"},{key:"2",value: "cf7fad2e-fae4-4c49-9924-ad9a2a7c50de"}]
559559
});
560560

@@ -609,7 +609,7 @@ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the
609609

610610
<br>To generate a token_auth follow these steps:</br>
611611

612-
* Log in to Matomo
612+
* Log in to Matomo
613613
* Go to the Matomo Admin through the top menu
614614
* Click on Personal -> Security
615615
* At the bottom of the page click on “Create new token”
@@ -630,6 +630,12 @@ Click on “Create new token”
630630

631631
</details>
632632

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+
633639
## License
634640

635641
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details

0 commit comments

Comments
 (0)