Uncaught TypeError: Cannot set property 'getCleverTapID' of undefined


#1

I have configured clevertap sdk for web as mentioned in the docs: https://developer.clevertap.com/docs/web
However I am getting the following error:

Uncaught TypeError: Cannot set property ‘getCleverTapID’ of undefined in a.js file

I am trying to push user profile & events but unable to see any data on the dashboard. Kindly help.


#2

Hey @Harsh123,

Can you mail us your account ID and mail the same at support@clevertap.com.


#3

Hi Saby,

The issue is resolved now. The problem was I did not declare the clevertap object as a global variable, so it was throwing the error.

Thanks.