The type or namespace name CustomEvent does not exist in the namespace UnityEngine.Analytics.

I’m getting an error error CS0234: The type or namespace name CustomEvent' does not exist in the namespace UnityEngine.Analytics. Are you missing an assembly with the code below. It was working fine, but after I unlink project and link to another project, the error appears. Any idea on fixing this issue? Thanks in advance.

UnityEngine.Analytics.CustomEvent(customEventName, eventData);

60061-screen-shot-2015-12-15-at-90529-am.png

Unity Analytics is within UnityEngine.Analytics framework.

UnityEngine.Analytics.Analytics.CustomEvent(customEventName, eventData);