Check analytics is installed
check_analytics_installation
Checks whether analytics is installed and collecting on a site, and whether the site is published yet.
Scopeanalytics:readRead only
It fetches the live page at the site's free web address and looks for the tracking script, so it is a real network round trip rather than a database read. It answers installed, published and the url it checked, and a page that cannot be fetched reads installed false rather than failing. A site that is not published yet answers installed false without fetching anything.
Use it first when numbers come back empty. It makes no analytics lookup, so it spends none of the 1,200 lookups access tokens share per site per hour. See What is counted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |