Categories

Featured templates

OpenCart 2.x. How to add Google Ads

Roger Cunningham June 9, 2017
Rating: 5.0/5. From 1 vote.
Please wait...

The following tutorial shows how to integrate Google Adsense into OpenCart based website.

OpenCart 2.x based templates come with multilingual HTML Content extension which can be used to display custom markup, scripts on specific pages. In this example we are going to place Google Advertisement on product page using the above mentioned module.

  1. Head over to Google Adsense and set up an account along with necessary options to obtain ad code snippet;

  2. Log into your OpenCart backoffice, navigate to Extensions > Extensions and select Modules under the extension type drop-down menu;

  3. Locate HTML Content module and click plus icon on the right side to add a new module instance;

  4. Specify the name, custom class and heading title for the new module instance on the options page. Paste Google Ad code snippet into the description field using Code View. Select the status for the new module and save changes by clicking the diskette icon at top right-hand corner;

  5. On the list of admin tools on the left, locate Design tab, and tap layouts under design. Open to edit the layout you would like the ad to show up on. It was mentioned at the beginning that we would use product page as an example;

  6. Pick the preferred position in the layout options, e.g. Header, Content Top, Column Left, Column Right, Footer. Next, click the plus icon to select your newly created module among the dropdown list and add it to the layout type;

  7. Tap Save icon at the upper right corner of the screen and then open storefront product page. The ad should be showing up now at the designated position;

Feel free to check the detailed video tutorial below:

OpenCart 2.x. How to add Google Ads

Browse our new OpenCart Templates and learn more about their usability.

Download OpenCart Themes
This entry was posted in OpenCart Tutorials and tagged ads, AdSense, advertisement, Google Adsense, opencart. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket