Setup Guide

Open Graph image for Framer CMS Collection Pages

1

Duplicate the CMS collection detail page

in Framer

This page will be the template for the Open Graph images for that CMS collection pages.


2

Rename the duplicate page to change its location

in Framer

The template page needs its own path for VisitorAgent to be able to capture it as Open Graph image.

Organize all the open graph images under /assets, for our example we rename the duplicate detail page to /assets/articles-og/:slug


3

Design the Open Graph template

in Framer

Resize the page to 1200x630px and design the Open Graph image template.

In our example we keep the CMS variables for the image, title, sub-title and blog categories.

VisitorAgent

In VisitorAgent configure the Open Graph image site and template settings.

4

Site Settings

in VisitorAgent
A

Enter your Framer project's base URL. VisitorAgent uses this permanent link to capture the Open Graph images.


5

Template Settings - Configuration

in VisitorAgent
A

For the Image Template Path, use the location from step 2 (without the :slug). In our example it’s /assets/articles-og

B

For the CMS Page Path, use the path of the actual content page the Open Graph image will be displayed. In our example it’s /blog


6

Template Settings - Open Graph Readiness Script

in VisitorAgent

Copy the Open Graph readiness script


In Framer - Site Settings

in Framer
A

Site Settings

B

Custom Code section

C

Add new script

D

Placement: End of <body>

E

Page to apply: Select the Open Graph Image Template page, in our example: /assets/articles-og/:slug

F

Run: Set to "On Every Page Visit"

G

Paste the OG readiness script from VisitorAgent


7

Template Settings - Open Graph Meta Tags

in VisitorAgent

Copy the Open Graph Meta tags


In Framer - Site Settings > Custom Code

in Framer
A

Add new script

B

Placement: Start of <head>

C

Page to apply: Select the CMS page path, in our example: /blog/:slug

D

Run: Set to "On Every Page Visit"

E

Paste the OG meta tags from VisitorAgent


8

Hide the template from search.

in Framer
A

In Framer Site Settings > Page Settings for the OG template page, in our example: /assets/articles-og/:slug

B

Set both search parameters to No

This ensures the Open Graph image template pages in Framer are excluded from your sitemap and ignored by search engines.


9

Remove existing Page Image

in Framer
A

In Framer Site Settings > Page Settings for the CMS page, in our example: /blog/:slug

B

Remove the default Page Images, so there is no images shown by Framer.

This ensures the Open Graph meta tags will be applied and read by VisitorAgent to capture and serve the OG image.


9

Remove existing Page Image

in Framer
A

In Framer Site Settings > Page Settings for the CMS page, in our example: /blog/:slug

B

Remove the default Page Images, so there is no images shown by Framer.

This ensures the Open Graph meta tags will be applied and read by VisitorAgent to capture and serve the OG image.


10

Publish your site

in Framer

For all the scripts and meta tags to take effect, publish or update your site in Framer.


11

Generate Images

in VisitorAgent

Pre-render your Open Graph images in VisitorAgent to ensure they load instantly when shared.

This generates images for pages that don't have them yet. Existing images will automatically refresh the next time they are shared.