mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 22:54:31 +00:00
Merge branch 'main' into fix/clean-test-warnings
This commit is contained in:
commit
a0a6f03788
@ -91,7 +91,7 @@ function App() {
|
||||
try {
|
||||
const deviceId = await getUID();
|
||||
|
||||
fetch('https://analytics.strapi.io/track', {
|
||||
await fetch('https://analytics.strapi.io/track', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
event: 'didInitializeAdministration',
|
||||
|
||||
@ -8,10 +8,10 @@ const useTracking = () => {
|
||||
const { uuid, telemetryProperties } = useContext(TrackingContext);
|
||||
const appInfo = useAppInfos();
|
||||
|
||||
trackRef.current = (event, properties) => {
|
||||
trackRef.current = async (event, properties) => {
|
||||
if (uuid) {
|
||||
try {
|
||||
axios.post('https://analytics.strapi.io/track', {
|
||||
await axios.post('https://analytics.strapi.io/track', {
|
||||
event,
|
||||
properties: {
|
||||
...telemetryProperties,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user