mirror of
https://github.com/ipfs/ipfs-blog.git
synced 2026-10-30 18:01:57 +01:00
fix: bail if !window.Countly
This commit is contained in:
1 file changed
+2
@@ -44,6 +44,8 @@ export function loadScript() {
|
||||
Track an event to countly with the provided data
|
||||
*/
|
||||
export function trackEvent(event, data = {}) {
|
||||
if (!window.Countly) return
|
||||
|
||||
window.Countly.q.push([
|
||||
'add_event',
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user