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
// Create and export the instance of cnzz analytics platform
51
-
exportconst cnzzAnalytics =createCnzzAnalytics({
52
-
websiteId: 'your_website_id',
53
-
debug: true,
54
-
})
55
-
```
56
-
57
-
:::
58
-
59
-
In other files, import the instance and call the method on the instance.
60
-
61
-
:::code-group
62
-
63
-
```ts [Baidu Analytics]
64
-
// @/foo.ts
65
-
import { baiduAnalytics } from'@/libs/analytics'
66
-
67
-
// For more methods, please see the documentation below
68
-
baiduAnalytics.trackPageview({
69
-
// Some options...
70
-
})
71
-
```
72
-
73
-
```ts [CNZZ Analytics]
74
-
// @/foo.ts
75
-
import { cnzzAnalytics } from'@/libs/analytics'
76
-
77
-
// For more methods, please see the documentation below
78
-
cnzzAnalytics.trackPageview({
79
-
// Some options...
80
-
})
81
-
```
82
-
83
-
:::
84
-
85
-
For more detailed instructions, continue reading the documentation.
86
-
87
29
## Platforms
88
30
89
31
The following analytics platforms are currently supported.
@@ -115,6 +57,8 @@ Because the developer of the plugin lives in mainland China, so the current prio
115
57
116
58
The plugin provides a method for creating an instance for each platform, and only needs to pass in the necessary options to complete the initialization work.
0 commit comments