Install Story Feed using a Tag Manager
In this article we'll go through how to use Google Tag Manager to install the Story Feed code.
It's super easy and will give you the ability to quickly deploy the Story Feed and create rules for what pages the Story Feed should load on.
Before you start you'll need Google Tag Manager set up and running on your website. Please refer to Google for instructions on how to get that set up:
https://support.google.com/tagmanager/answer/6103696?hl=en
Step 1: Create a Custom Trigger
Note: If you already have a custom trigger for the pages you want the Story Feed to appear on then you can skip this step
- In Google Tag Manager, click Triggers > New
- Click Trigger Configuration and choose Page View as the trigger type
- Choose Some Page Views as the firing option
- Add a condition that specifies when you want your tag to fire. For example, if you want it to fire on a specific page, you can use:
Page URL equals https://example.com/careers.
If you want it to fire on any page that has /careers/ in the URL, so that it appears on all sub-pages for that area of the website, you can use:
Page URL contains /careers/ - Click Save and name your Trigger
Step 2: Create a new Custom HTML Tag
- In Google Tag Manager, click Tags > New
- Click Tag Configuration and choose Custom HTML as the Tag Type
- Paste your Story Feed code snippet in the HTML field
Example:
(NB: You can find your Story Feed code on your VideoMyJob web dashboard under StoryFeed > Install)
- Click Triggering and select the Custom Trigger you created in Step 1
- Click Save and name your tag to something recognisable like: “VideoMyJob Story Feed”
Step 3: Publish your changes
- In Google Tag Manager, click Submit
- Enter a version name and description for your changes
- Click Publish