diff --git a/modules/et_page_top_bottom/plugins/et_page_top_bottom_context_reaction.inc b/modules/et_page_top_bottom/plugins/et_page_top_bottom_context_reaction.inc
index b9aadbd..6ca8aeb 100644
--- a/modules/et_page_top_bottom/plugins/et_page_top_bottom_context_reaction.inc
+++ b/modules/et_page_top_bottom/plugins/et_page_top_bottom_context_reaction.inc
@@ -59,16 +59,27 @@ class et_page_top_bottom_context_reaction extends context_reaction {
         $id = $context->reactions[$this->plugin]['et_page_top_bottom'];
         $embed = entity_load_single('embed_templates', $id);
 
+        // Don't view embed if it is unpublished.
+        if ($embed->status === 'unpublished') {
+          return null;
+        }
+
         $data = unserialize($embed->data);
         $type = $embed->type;
 
         $js = _et_page_top_bottom_get_js($data, $type);
 
         // Add weight based on position.
-        $weight = $data['position'] == 'top' ? -9999 : 9999;
+        // Set default to show at the bottom of the page.
+        $weight = 9999;
+        $position = 'bottom';
+        if (isset($data['position']) && $data['position'] === 'top') {
+          $weight = -9999;
+          $position = 'top';
+        }
 
         // Add JS to proper section of $page array.
-        $page['page_' . $data['position']]['et_page_top_bottom'][] = array(
+        $page['page_' . $position]['et_page_top_bottom'][] = array(
           '#markup' => $js,
           '#weight' => $weight,
         );
diff --git a/modules/et_tracking_pixels/et_tracking_pixels.info b/modules/et_tracking_pixels/et_tracking_pixels.info
index aa03041..2b183e5 100644
--- a/modules/et_tracking_pixels/et_tracking_pixels.info
+++ b/modules/et_tracking_pixels/et_tracking_pixels.info
@@ -3,4 +3,3 @@ description = Provides several tracking pixel embed types.
 core = 7.x
 package = Embed Templates
 dependencies[] = embed_templates
-dependencies[] = et_page_top_bottom
diff --git a/tests/et_test.test b/tests/et_test.test
index bf63abd..829055a 100644
--- a/tests/et_test.test
+++ b/tests/et_test.test
@@ -637,4 +637,66 @@ class EmbedTemplatesTrackingPixelTestCase extends DrupalWebTestCase {
     $this->assertNoRaw("fbq('track', '');", "No empty Facebook tracking action.");
   }
 
+  /**
+   * Assert that an embed code isn't added to the page via Context when it is unpublished.
+   */
+  public function testUnpublishedContext() {
+    // Create data without a second tracking action.
+    $data = 'a:1:{s:10:"account_id";s:6:"123456";}';
+
+    // Create Facebook pixel.
+    $options = array(
+      'name' => 'Not Published',
+      'renderer' => 'page_top_bottom',
+      'type' => 'twitter',
+      'path' => '',
+      'status' => 'published',
+      'data' => $data,
+    );
+    $this->createEmbed($options);
+
+    // Add a context.
+    $context = new stdClass();
+    $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
+    $context->api_version = 3;
+    $context->name = 'custom_pixel';
+    $context->description = '';
+    $context->tag = '';
+    $context->conditions = array(
+      'path' => array(
+        'values' => array(
+          'node/1' => 'node/1',
+        ),
+      ),
+    );
+    $context->reactions = array(
+      'et_page_top_bottom' => array(
+        'et_page_top_bottom' => '1',
+      ),
+    );
+    $context->condition_mode = 0;
+    context_save($context);
+
+    // Need to flush caches for Context to be active on node/1.
+    drupal_flush_all_caches();
+
+    // Go to page with tracking pixel on it.
+    $this->drupalGet('node/1');
+
+    // Assert tracking pixel code is rendered.
+    // Need to use raw since code is not visible.
+    $this->assertRaw("twq('init', '123456');", "Twitter ID found.");
+
+    // Change status to unpublished to make sure embed is not rendered.
+    $edit = array();
+    $edit['status'] = 'unpublished';
+    $this->drupalPost('admin/content/embeds/facebook/1/edit', $edit, t('Save'));
+
+    // Go to page with tracking pixel on it.
+    $this->drupalGet('node/1');
+
+    // Assert tracking pixel is not rendered.
+    $this->assertNoRaw("twq('init', '123456');", "Twitter ID found.");
+  }
+
 }
