Smart Content logo

Smart Content is a toolset to enable real-time, anonymous website personalization on any Drupal 8 website. Out of the box, it allows site administrators to display different content for anonymous or authenticated users based on browser conditions.

The Smart Content module provides limited functionality on its own. Instead, it is designed to work in conjunction with other modules to bring the full power of personalization to life:

  • Smart Content Blocks (included) allows you to insert a Smart Block on any page in order to hide/show/swap content within that block, based on conditions. They can be added anywhere you can normally place blocks, and multiple Smart Blocks can be placed on a single page.
  • Smart Content Browser (included) enables browser-based conditions admins can use to evaluate whether to display personalized content. This includes conditions like language, mobile, cookies, local storage and quite a few others.
  • Smart Content Datalayer collects data from Smart Content displayed on a page and provides it to analytics platforms like Google Tag Manager via the dataLayer object.
  • Smart Content A/B provides an A/B testing layer on top of Smart Content segments. You can use this directly for A vs B vs C tests, or intermix A/B conditions with more advanced personalization rules.
  • Smart Content UTM provides conditions for handling UTM strings. UTM values are automatically cookied and made available as conditions to use in segments.
  • Smart Content Demandbase is a connector module that allows data available through Demandbase’s API to be used as conditions. Note: this module requires an active Demandbase subscription.
  • Smart Content 6sense is a connector module that allows data available through 6sense's API to be used as conditions. Note: this module requires an active 6sense subscription.

Sample use cases include:

  • Show return visitors to your Drupal site personalized content.
  • Display content relevant only to mobile users when your Drupal site is accessed with a mobile device.

Conditions, Segment Sets and Reactions

Smart Content uses conditions, within Segments, to determine whether or not to display the reaction(s) defined within a Decision Block. A Condition is a single case that can be tested and determined to be either true or false, multiple conditions can be included in a Segment and a Segment Set is one or more Segments grouped together. For more in-depth information around these, and other, terms take a look at the glossary in our documentation guides.

Security

Smart Content is NOT intended to be used as a substitute for serverside access control. Conditions are evaluated clientside and can be viewed, changed or manipulated by someone with the right knowledge and skillset. This module is primarily focused on improving user experience and providing additional contextual conditions for displaying content, not restricting access through secure means or evaluating conditions that contain personally identifiable information.

Layout Builder Integration
Smart Content 3.x.x works with Layout Builder out of the box. Smart Blocks have been reworked and are now Decision Blocks, which can be placed using Layout Builder. Please report any issues in the issue queue.

Supporting organizations: 
Module development and support

Project information

Releases