To add it, you need:
A Mobify Cloud Project: Check that you have a project created in Mobify Cloud. If your project does not appear, contact Mobify Cloud support to make sure that the project has been created and that you have been granted access to it as a team member.
Server Access: You must change the HTML sent by your server. If you’re not sure how to do this, ask your site’s administrator for help.
Installing the Mobify Tag #
Add your project’s tag to the
<head> of each page you want to load the PWA on:
<!doctype> <html> <head> <title>Example Title</title> <meta name="title" content="Example Meta Title"> <meta name="description" content="Example Meta Description"> <!-- 📍 The tag goes here, early in the <head>, after SEO tags: --> <!-- MOBIFY --> <!-- ... --> <!-- END MOBIFY --> </head> <!-- ... --> </html>
Second, verify the tag is placed by viewing the source of your pages and confirming it is in the HTML. Depending on your system, you may have to flush caches or rebuild pages for the tag to appear.
The Mobify tag works best when:
- It is placed early in the
- It is placed below SEO tags like
Installing the tag on Salesforce Commerce Cloud or SAP Hybris Commerce
If you’re using Salesforce Commerce Cloud, Mobify’s cartridge will install the Mobify tag for you.
If you’re using SAP Hybris Commerce, Mobify’s extension will install the Mobify tag for you.