diff --git a/src/Tests/GoogleAnalyticsCustomDimensionsAndMetricsTest.php b/src/Tests/GoogleAnalyticsCustomDimensionsAndMetricsTest.php
index 08161ec..e89f59e 100644
--- a/src/Tests/GoogleAnalyticsCustomDimensionsAndMetricsTest.php
+++ b/src/Tests/GoogleAnalyticsCustomDimensionsAndMetricsTest.php
@@ -19,11 +19,18 @@ use Drupal\simpletest\WebTestBase;
 class GoogleAnalyticsCustomDimensionsAndMetricsTest extends WebTestBase {
 
   /**
+   * The node type to use in the test.
+   *
+   * @var string
+   */
+  protected $nodeType = 'article';
+
+  /**
    * Modules to enable.
    *
    * @var array
    */
-  public static $modules = ['google_analytics', 'token'];
+  public static $modules = ['google_analytics', 'token', 'node'];
 
   /**
    * {@inheritdoc}
@@ -34,8 +41,16 @@ class GoogleAnalyticsCustomDimensionsAndMetricsTest extends WebTestBase {
     $permissions = [
       'access administration pages',
       'administer google analytics',
+      'administer nodes',
+      'create article content',
     ];
 
+    // Create node type.
+    $this->drupalCreateContentType(array(
+      'type' => 'article',
+      'name' => 'Article',
+    ));
+
     // User to set up google_analytics.
     $this->admin_user = $this->drupalCreateUser($permissions);
   }
@@ -43,6 +58,11 @@ class GoogleAnalyticsCustomDimensionsAndMetricsTest extends WebTestBase {
   function testGoogleAnalyticsCustomDimensions() {
     $ua_code = 'UA-123456-3';
     $this->config('google_analytics.settings')->set('account', $ua_code)->save();
+    $node = $this->drupalCreateNode([
+      'type' => $this->nodeType,
+    ]);
+    $node_id = $node->id();
+    $node_title = $node->getTitle();
 
     // Basic test if the feature works.
     $google_analytics_custom_dimension = [
@@ -96,6 +116,10 @@ class GoogleAnalyticsCustomDimensionsAndMetricsTest extends WebTestBase {
         'index' => 4,
         'value' => '0',
       ],
+      5 => [
+        'index' => 5,
+        'value' => '[node:type]',
+      ],
     ];
     $this->config('google_analytics.settings')->set('custom.dimension', $google_analytics_custom_dimension)->save();
     $this->verbose('<pre>' . print_r($google_analytics_custom_dimension, TRUE) . '</pre>');
@@ -105,6 +129,10 @@ class GoogleAnalyticsCustomDimensionsAndMetricsTest extends WebTestBase {
     $this->assertRaw('ga("set", ' . Json::encode('dimension2') . ', ' . Json::encode($google_analytics_custom_dimension['2']['value']) . ');', '[testGoogleAnalyticsCustomDimensionsAndMetrics]: Random value is shown.');
     $this->assertNoRaw('ga("set", ' . Json::encode('dimension3') . ', ' . Json::encode('') . ');', '[testGoogleAnalyticsCustomDimensionsAndMetrics]: Empty value is not shown.');
     $this->assertRaw('ga("set", ' . Json::encode('dimension4') . ', ' . Json::encode('0') . ');', '[testGoogleAnalyticsCustomDimensionsAndMetrics]: Value 0 is shown.');
+
+    $this->drupalGet('node/' . $node_id);
+    $this->assertText($node_title);
+    $this->assertRaw('ga("set", ' . Json::encode('dimension5') . ', ' . Json::encode('article') . ');', '[testGoogleAnalyticsCustomDimensionsAndMetrics]: Article is shown.');
   }
 
   function testGoogleAnalyticsCustomMetrics() {
