Public Method Items API

getTags()

Retrieves all tags for Items in the current Activity.

You would want to use this method so that you can perform advanced content debugging your test environments, for example.

Note getTags() requires the retrieve_tags initialization option to be set to true.

Examples

// Standard usage
var tags = itemsApp.getTags();
console.log(tags);

// Return tags with TagsV0 structure
var tagsV0 = itemsApp.getTags(true);
console.log(tagsV0);

Arguments

  • format boolean
    Optional. Passing true for the format returns the (deprecated) TagsV0 structure.

Return value

mixed

See Understanding Tag Formats for Content Creation and Filtering for more information on the various Tag formats.

Related articles

Was this article helpful?