1. Home
  2. Docs
  3. XYZ WP Insert Code Snippet Premium
  4. User Guide
  5. Manage Snippets

Manage Snippets

In this section we can see all the snippets available and create new snippets.

manage snippets

Here we can see all the snippets with Tracking Name, Snippet Short Code, Type, Status.

We can also see different actions.

To sort the snippets based on the type (HTML or PHP), we can select from the type drop down and click Go.

Click the “Add New Snippet” to create a new snippet.

add snippet

Here we can select the Type, enter the tracking name and add the code.

Note : If you are passing custom parameters from the shortcode (eg: [xyz-ics snippet=”snippet” param1=”val1″]) you can use such parameters in the code by enclosing the parameter in curly braces (eg: {param1}).

More details available in

User Targeting : We can display the snippet to all users, logged-in users only and logged-out users only.

Geographic Targeting : We can display the snippet to certain countries only.

Device Targeting : In this device targeting, we can publish the snippet to all devices, Mobiles and Tabs only, Laptop and desktop only.

After entering all the details click the “Create” button and a snippet is now created and you can copy the snippet short code.

Please copy this short code and paste it in the location where you want to display the content.

When you create a new post or page, you can see the snippet in the editor section as given below.

add new post

Here the HTML snippets and PHP snippets are displayed as 2 separate section.

Note: To add the snippet in a template file, please follow the link

Was this article helpful to you? Yes 1 No