getEventTagJsWithHttpInfo method
The Hanzo event tag — the one-line install for a surface with no bundler
Serves the browser tag that autocaptures pageviews (initial and SPA) and uncaught errors onto the canonical wire at POST /v1/event. Install is one line, and it is the same line for a Hanzo property and for a customer's own page: <script defer src="https://api.hanzo.ai/v1/event/tag.js" data-key="pk-…"> data-key is the publishable key the project mints; data-product optionally names the emitting surface. The key may also ride the src as ?key= for a host that strips data attributes. WITHOUT A KEY THE TAG SENDS NOTHING. A keyless beacon is accepted 200 into $public, a reserved tenant the owning org cannot read — so silence is the honest failure, and the tag picks it rather than reporting success into a tenant nobody reads.
Note: This method returns the HTTP Response.
Implementation
Future<Response> getEventTagJsWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/v1/event/tag.js';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}