Interaction Content Channel Item Write

Interaction Content Channel Item Write Command

v11.0

This Lava command will write a content channel interaction for the specified content channel item.

The Basics

By specifying the content channel item ID - as well as a few other optional values - you can log an interaction without having to actually load the content channel item on the page.

{% interactioncontentchannelitemwrite contentchannelitemid:'1' operation:'View' summary:'Viewed content channel item #1' personaliasid:'10' %}

And just like that, an interaction record has been logged! The above example shows all possible parameters you can provide this Lava command, but not all of them are required. Let's dive into the specifics.

Warning: You may be tempted to add some line-breaks in that command, but please don't. It won't work if you do.

Parameters

Content Channel Item ID

Required: This ID will be used to look up not only the content channel item, but also the parent content channel for which an interaction should be logged.

contentchannelitemid:'1'

Operation

Optional: Leaving this blank will result in the value of "View" being logged. Otherwise, you may specify any value you like here, as long as it's 25 characters or less. If you go over 25 characters, the value that's logged will be truncated.

operation:'View'

Summary

Optional: Leaving this blank will result in the current page's title being logged. Otherwise, you may specify any value you like here, as long as it's 500 characters or less. If you go over 500 characters, the value that's logged will be truncated. Note that this value is what is displayed within the "Interaction Session List" on Rock's Tools > Interactions page.

summary:'Viewed content channel item #1'

Person Alias ID

Optional: Leaving this blank will result in the current person (the person who is viewing the page) being logged. Note that if you supply an invalid value here, not only will the interaction fail to be logged, but an exception will appear within Rock's Exception List.

personaliasid:'1'