WP Remix
Analytics for a New Generation

Setting Content Metadata

With NuConomy, you can also capture the metadata associated with content. Metadata can be many things; it can be the tags a user chose for a blog post, the category under which an article was posted or the names of the actors of a movie. In essence, it is simply data that gives more details on a specific piece of content.

Using the NuConomy API to gather content metadata is essential in order to unlock the full potential of NuConomy Studio. Gathering this information allows you to discover many insights about what metadata drives users to perform specific activities. Some examples are:

  • Which categories/tags in my content drive the most contribution (value) to my business?
  • Which topics should I cover in my blog in order to get more community participation?
  • Who are my top writers in certain categories or on certain tags?
  • What brands contribute the most to my e-commerce shop?
  • What content personalization or recommendations should I give to each user?
  • What topics cause users to click on ads?

When users perform activities on content that was tagged with metadata, NuConomy automatically attributes those actions to that metadata (and to those specific users, too).

You can collect three distinct sets of metadata on each piece of content:

  • Content Owner (see above example). Examples include author of blog post, company who manufactures a product, etc.
  • Content Type. Examples include videos, photos, profile pages, etc.
  • Tags. The tags are any words that describe the content. Examples include the category of a video, the details of a product or the actors of a movie.

Although you can set content metadata whenever you want, it is most efficient to set it immediately after a new piece of content is created in/uploaded to your system (e.g. when a user uploads a new video, when a new product is listed in your system).

Setting content metadata using the API is very easy. You simply use the SetContentMetadata method:

            NUCONOMY.Logger.SetContentMetadata (contentID, contentOwnerUserID, contentType,
            csvTags );

Parameter Name Description
contentID Unique ID that identifies a specific piece of content. Examples are a video ID, a product ID or the permalink of a blog post.
contentOwnerUserID Unique ID that identifies the owner of the piece of content on which the visitor performed an activity. For example the ID of the author of a blog post. If the content owner is anonymous/unknown, the communication string is empty.
contentType A string representing the type of content you wish to track (e.g. profile pages, videos, photos). You will be able to slice most reports in the system by this parameter.
csvTags A list of all tags or categories associated with the specified content. Tags should be separated by a semicolon (;)

Note that a second way you can set content metadata is by using a special property and a call to LogActivity method. Here is an example:

            NUCONOMY.Tags = “TV;Plasma;Black;”;

If you choose to set metadata using this method, note that you must set the tags property before the call to the LogActivity. If you do not plan to call the LogActivity method, you should use the SetContentMetadata method instead.

Code Examples:

If you want to set the metadata of a movie review you could use this code:

            NUCONOMY.Logger.SetContentMetadata (“Movie ID”, “ID of the user who wrote the review”,
            “1”, “Tom Cruise;Nicole Kidman;Sony Pictures;Steven Spielberg;Drama” );
        

If you want to set the metadata of a product you could use this code:

            NUCONOMY.Logger.SetContentMetadata (“Product ID”, “ID of the manufacturer”, “2”,
“Sony;TV;Plasma;50 inch;Black” );