The individual images in an Instagram SmartBlock can be set to allow readers to click through to the Instagram post. You can filter the displayed images to a hashtag of your choice, for example #justarrived or #thisseason.
Connect your Instagram account
While it’s not essential to log into your Instagram account in order to make use of an Instagram SmartBlock, it is recommended so that you can take advantage of:
Faster performance
Improved reliability
Easier SmartBlock configuration
New images shown in your SmartBlocks within a couple of minutes of being posted
To connect to your Instagram account:
Expand the User menu and go to Settings > Other Integrations.
Select Instagram Settings.
Select Connect to Instagram. You’re taken to the Instagram login page.
Enter your Instagram login credentials and select Log in.
Agree to give the app permission to view your public posts.
Setup
Go to Content > SmartBlocks.
Select the Instagram tab.
Select CREATE SMARTBLOCK.
Hover over the layout you want for your SmartBlock, then select CREATE.
Mergeable Instagram data
In most of the layouts available for Instagram SmartBlocks, the only data we use from Instagram is the thumbnail image. If you want to use any other data from Instagram, select Edit next to the Layout drop-down menu, and type in the appropriate merge field(s) from the list below.
Learn more in Cart layout editing using Jinja.
Merge Field | Description |
{{ item.images.thumbnail.url }} | Source URL of the thumbnail image. |
{{ item.images.low_resolution.url }} | Source URL of the medium-sized image. |
{{ item.images.standard_resolution.url }} | Source URL of the large image. |
{{ item.link }} | URL of the Instagram post. Can be used in the Redirect URL field. |
{{ item.caption.text }} | Caption of the image given by the user who posted it. |
{{ item.caption.from.username }} | Username of the person who posted the caption. |
{{ item.caption.from.full_name }} | Full name of the person who posted the caption. |
{{ item.caption.from.profile_picture }} | Image source URL of the profile picture of the user who posted the caption. |
{{ item.is_video }} | Boolean that indicates whether the item is a video or image post. |
Properties
Once you have created your SmartBlock, and defined its layout, you can select the Properties tab to configure it.
Enter a name for your SmartBlock.
Optionally, add tags to group this SmartBlock with others of your choice.
For SmartBlock management and reporting purposes.
The Dynamic (Metered) check box is selected by default. Instagram SmartBlocks must be dynamic.
Enter a Redirect URL for when a visitor clicks on the feed.
By default, this field is set to {{item.link}}, which redirects the visitor to the Instagram post the image is from. Leave blank to link to the Instagram page you’re displaying images from.Enter the UTM tags —
utm_source
,utm_campaign
andutm_medium
— you want to use to track clicks on this SmartBlock.Enter any merge parameters that you want to allow in the Slot query string.
Personalization
All Instagram SmartBlocks must be dynamic (metered), which means that all the data in the person record is available to use. For example, you might want to include a personalized code in the redirect URL for your analytics tool to track.
Data source
Select the Data Source tab to set the name and post properties for your Instagram SmartBlock.
Enter the Instagram username for the profile whose posts you want to use in your SmartBlock.
Optionally, enter a hashtag to filter posts displayed to only those using the specified hashtag.
Enter the number of posts for the SmartBlock to display.
Select the Shuffle check box to return a random selection of the 20 most recent posts for the selected profile.
This selection changes each time the SmartBlock is generated.Expand the Show Video Thumbnails drop-down menu to choose how to manage the display of thumbnails:
Image and Video thumbnails
Image thumbnails only
Video thumbnails only
Once you’re happy with the configuration of your SmartBlock, select:
PUBLISH AND EXIT
To save your changes and exit to the SmartBlocks page.PUBLISH AND USE
To save your changes and be directed to the Use page for the SmartBlock.PUBLISH
To save your changes and continue editing.