I’ve also tried to use the shortcode “[site_reviews assigned_users=”user_id”]” in a text widget but then no reviews appear at all.
Any ideas?
]]>First of all thanks for the great plugin. I was wondering if there was a way to show a logged in user tickets from a selection of other users as well. For example, we want person A to also see tickets from person C and E, but not B and D. The reason for this is person A, C and E all belong to the same company. In terms of shortcode, it would be some like user_id=”A,C,E”. Thanks for your time.
]]>First of all, I want to congratulate you for sharing your work.
I need a way to create a database table with form entries, like the one in this plugin. I’ve looked through several plugins like yours and the way data is structured, and this seems to be the one most useful to my own use, as fields are saved unserialized, each on its own row, linked by a common lead_id column.
Is there a way for this lead_id field be defined in the form, as a hidden or readonly field?
I’m already passing an id field in my form, it would be a simpler way to relate the form entries table to older data I have in the database.
Thanks.
]]>I know um_profile_id() or um_user(‘ID’) can give you the latter per this page.
https://docs.ultimatemember.com/article/124-umprofileid
What I want to achieve is, when you have the same template for all profile pages, if you are viewing your own profile page (you can either visit from members grid or directly from mypage) you show certain content to the logged-in user only. And this will not be shown if you are viewing some other user’s profile.
]]>But the GA view with User-ID enabled is showing no user activity. There is activity reporting as “Unassigned” in GA “All Web Site Data” view for Audience -> Behavior -> User-ID Coverage. And all users (logged in and visitors) are showing in “All Web Site Data”.
The GA setup instructions to enable User-ID reporting for logged in users, indicate that the following needs to be added: gtag(‘config’, ‘GA_MEASUREMENT_ID’, {‘user_id’: ‘USER_ID’});
See https://developers.google.com/analytics/devguides/collection/gtagjs/cookies-user-id
Do I need to add “<script>gtag(‘config’, ‘GA_MEASUREMENT_ID’, {‘user_id’: ‘USER_ID’});</script>” outside of gwm4wp to enable User-ID feature in GA (and substitute the correct UA-XXXX for GA_MEASUREMENT_ID in the script)?
It seems that the code may need to be “<script>gtag(‘config’, ‘GA_MEASUREMENT_ID’, {‘user_id’: ‘visitorId’});</script>” ??
I have Visitors enabled (all boxes are checked) in the gtm4wp “Basic data” tab, and added visitorId, visitorLoginState and visitorType Data Layer Variables in GTM,
(and verified that data is flowing and correct to google analytics). Do not track
I can see logged in and non-logged in users in GA reports for “All Web Site Data” view and have inspected the data layer variables and see the right info.
But, I am not seeing logged in user activity in a USER_ID enabled google analytics view for the same GA property… real time and history show 0 views, 0 events.
My setup has gtm4wp container code placement as Custom and the code, per instructions, is placed as required. No changes are set in “Advanced” tab.
If an updated howto would be helpful to add to your site, I’m open putting one together and send to you to publish.
]]>wpc_functions.php
at line 2584, wpCentral 1.5.0:
$user_info = get_userdata(1);
Why is the user id hardcoded to 1
here?
Many sites do not have that user (any more), it is often manually removed due to various tutorials about ‘hardening’ WordPress or the id of that user is changed/randomized by various ‘security’ plugins etc.
]]>