Coder Social home page Coder Social logo

craft-adwizard's Introduction

Plugin icon

Ad Wizard plugin for Craft CMS

Easily manage custom advertisements on your website.


For complete documentation, see plugins.doublesecretagency.com/ad-wizard

Create Ads

Manage your ads in the Craft control panel by clicking the "Ad Wizard" tab.

Before you can create any Ads, you will first need to create at least one Group. Every ad you create will belong to a specific group. Once you've created your ads, you'll then be able to embed them into your Twig templates.

Embed Ads

You have two Twig tags available to you...

Render a random ad from a specific group. Specify the group by its handle.

{{ craft.adWizard.randomizeAdGroup('rightSidebar') }}

Render a single, specific ad. Specify the ad by its ID number.

{{ craft.adWizard.displayAd(42) }}

Both methods can display an ad until:

  • The ad expires, or
  • The ad reaches the maximum allowed impressions, or
  • The ad is manually disabled.

Read more about embedding ads...

Track Views & Clicks

From the control panel Dashboard, click the settings icon. You can click the "New Widget" button to add a new widget to your dashboard.

Two new widget types will be available to you:

  • Ad Timeline - A line chart showing the view/click trends of a single ad over time.
  • Group Totals - A bar chart showing the total views/clicks for each ad in a specified group.

Read more about seeing your ad statistics...

Use Image Transforms (supports Retina display)

You can easily apply an image transform to your ads...

{{ craft.adWizard.randomizeAdGroup('rightSidebar', {
   'image': {
       'transform': 'large',
       'retina': true
   }
}) }}

Read more about image transforms...


Further Reading

If you haven't already, flip through the complete plugin documentation.

And if you have any remaining questions, feel free to reach out to us (via Discord is preferred).

On behalf of Double Secret Agency, thanks for checking out our plugin! ๐Ÿบ

Logo for Double Secret Agency

craft-adwizard's People

Contributors

lindseydiloreto avatar davidwebca avatar juban avatar engram-design avatar pgrzyb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.