@formo/analytics 1.11.0 → 1.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,7 +15,10 @@ Add the following to your `index.html`:
15
15
  script.src = 'https://unpkg.com/@formo/analytics';
16
16
  script.onload = function () {
17
17
  FormoAnalytics.init(apiKey, projectId).then(
18
- (sdkInstance) => (window.formo = sdkInstance)
18
+ (sdkInstance) => {
19
+ window.formo = sdkInstance;
20
+ window.formo.trackPageHit();
21
+ }
19
22
  );
20
23
  };
21
24
  document.head.appendChild(script);
@@ -123,7 +126,7 @@ export default function RootLayout({
123
126
  ```
124
127
 
125
128
  ### 4. Using the SDK
126
-
129
+
127
130
  Once the SDK is initialized, you can use its methods to track events and user interactions. Here’s how to do that:
128
131
 
129
132
  ```jsx