Display single event on a page with events planner wordpress plugin - wordpress

How do I display a single event with the events planner plugin in wordpress
https://wordpress.org/plugins/events-planner/
If I use [events_planner event_id="1932"] it displays all the events instead of displaying a single one
How do I display a single event ?
Has anybody used it ? Please help

Related

Firing a trigger group multiple times on a page

I need some help with Google Tag Manager and Google Analytics.
I want to send a pageview to Google Analytics if a user is viewing an image in a gallery on an article. The user is staying on the same URL, when he is viewing an image.
I created a trigger group which consists of two events
• Consent given by the user to use Google Analytics
• Event which is fired when an image in a gallery is being viewed
This works so far so good. Unfortunately, the trigger group is only being fired once on a page. When a user open the gallery and views the image and scrolls to next image, he is staying on the same URL. In that case, the trigger group is only being fired once.
How can I achieve that the trigger group is being fired multiple times on the same page without removing the second trigger (consent)?
I found out that I can create a second trigger group and add two image views and the consent as a trigger. But this solution means that I have to create 100 new tags, which is kind of crazy. Is there any workaround?
Thanks in advance
Once consent has been given by the user in a way that each pageview can pick up (e.g. you're setting it in some persisted state: data layer, cookie, etc.), you're ultimately just looking at triggering when the event happens.
Since you describe a scenario where it happens only once, I'd urge you to take a look at the other triggers on your tag and remove the page-specific trigger your description suggests you have in place. Replace it with only your event and consent triggers and it should work every time an event is observed.

Appmaker: Opening a page where the record is pre-selected

first-time questioner here!
I have a page called Dashboard and it has a table listing all Products.
On each Product table row there is a button
I want to click the edit button to open a new page called 'Products' where instead of it showing all products, it shows only the selected record.
Solutions I can think of (but don't know which is best or how to properly implement)
- create a filtered query datasource with a parameter
- write a function and call it from the onClick event (I cannot write JS)
- write some simple code in the custom action of the onclick event
enter image description here
(I'm a citizen coder - my background was MS Access where you could write things like (Open X page where ID=current.record). I am learning slowly by working through the examples but I am not finding there is much documentation from Google so sorry for the basic question.

Google tag manager single page application window load and history change

I'm trying to create page view tags. I have to create two for two different triggers.
Page view triggered by history change;
Page view triggered on window load (because first page load doesn't have any history change)
My problem is the home page, which is firing both tags.
Because if put in URL www.mysite.com, the page redirects to my.site.com/home
which creates a window load and a history change. So two page view tags are fired.
I can't exclude historychange trigger to exclude page path: /home because once people got into the site they'll navigate back and forth.
I can't exclude windowload because people may use either URL to enter the site (mysite.com or mystie.com/home)
Anyone can help me with this?
I suggest to create 1 page view tag instead of 2 and use both triggers. Multiple triggers in GTM tag work with OR operator. And set tag to fire once per page.
Advanced settings -> Tag firing options -> Once per page
UPD I'm afraid that in this case other hits for virtual pages triggered by History change will not be fired (because of 1 per page rule). Try to check what value have variable Old History Change after redirection. If undefined or empty, you can use it in trigger of History Change tag as exclusion.

Visual Composer Grid Builder Past event

I am using visual composer in WordPress,In the i have create the custom post type for the event and displaying the events such as upcoming event and past event using grid builder.the upcoming event is displaying fine but the past event is showing all post,I need to display only the past events i have try some methods in that i have write the custom query for the past event to comparing with current date.
Custom field name:
date_short_order
Custom query:
post_type=event&posts_per_page=3&post_status=publish&meta_key=date_short_order&orderby=meta_value_num&order=DESC&meta_query%5B0%5D%5Bkey%5D=date_short_order&meta_query%5B0%5D%5Bvalue%5D=$today&meta_query%5B0%5D%5Bcompare%5D=<&meta_query%5B0%5D%5Btype%5D=DATE
I am struggling past one week with this any one help me.
Finally i got answer.
post_type=event&meta_query%5B0%5D%5Bkey%5D=date_short_order&‌​meta_query%5B0%5D%5B‌​value%5D=$today&‌​meta_query%5B0%5D%5B‌​compare%5D=%3C&meta_‌​query%5B0%5D%5Btype%‌​5D=DATE
post_type=event&meta_query%5B0%5D%5Bkey%5D=date_short_order&‌​meta_query%5B0%5D%5B‌​value%5D=$today&‌​meta_query%5B0%5D%5B‌​compare%5D=%3C&meta_‌​query%5B0%5D%5Btype%‌​5D=DATE

How to trigger an event tag when a user leaves a page?

In Google Tag Manager, I'm tracking the pageScrollDepth variable.
I want to trigger a Google Analytics event Tag that pushes (as custom metrics) the recent value of pageScrollDepth just before the user leaves the page.
How can I create the leavingPage trigger?
http://www.blastam.com/blog/index.php/2014/04/scroll-depth-tracking-analysis-google-analytics
^ The code in this blog post is the one that your are looking for where it takes the last scroll depth before the user leaves to another page. You will find a link to bitbucket to download the code
Paste the code in a Custom HTML tag and then create a JS variable to call the "callbackData.scrollPercent" for the Event Label

Resources