Highlighted

Updating Data Layer in Magento

Rookie Contributor

Has anyone implemented this in Magento and needed to add additional variables that are not in Magento out-of-the-box? I have already installed the extension on Magento and that is up and running. We just have new variables to add to our data layer.

 

If so, what files did you update the variables in? Thanks.

7 REPLIES 7
Highlighted

Updating Data Layer in Magento

Tealium Expert
Tealium Expert

Hi @Christine, sounds like you're using one of the Magento Marketplace "extensions"?  If so, then you first will want to check with the extension's author and/or review any documentation around customization, plus learn about the variables already on the new data layer.  Once you know those variables then you can map to them in the Tealium Data Layer panel.

 

I'm sure others will chime in here as well...  best of luck!

Highlighted

Updating Data Layer in Magento

Rookie Contributor

I am using the extension that Tealium told me to install. The only documentation that exists for it, is on how to install the extension and nothing else.

 

https://community.tealiumiq.com/t5/Mobile-Libraries/Tealium-for-Magento/ta-p/11924

 

I have new data variables that do not already exist in Magento, such as order_promo_code, order_shipping_type, cart_product_id, etc. Where in the Magento code (I'm not expecting to be able to add them through the admin console) do I add these?

Highlighted

Updating Data Layer in Magento

Rookie Contributor

I found this online ... I am assuming this is you guys' github??

 

https://github.com/Tealium/integration-magento

 

It says to modify the TealiumCustomData.php file. Would that be the only place I would need to update in Magento OR is there somewhere else too? 

Highlighted

Updating Data Layer in Magento

Employee Emeritus

Hello @Christinehttps://github.com/Tealium/integration-magento is definitely us. I'm such a dork for not pointing you to this resource. I am trying to find someone to assist you as well. 

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.
Highlighted

Updating Data Layer in Magento

Rookie Contributor

I am also going back and forth with Shushan Klien about this ... here is what I just emailed to her.

 

I didn't find what is on GitHub to be super useful. It feels like it is written for people who install Tealium on Magento everyday, and not for someone who is new to it.

 

The only things I got out of it were:

 

  1. Setting a Custom UDO file path inside of Magento admin
    1. I tried two different file paths in the Custom UDO file path, and neither appear to work …
      1. /lib/Tealium/TealiumCustomData.php
      2. /htdocs/lib/Tealium/TealiumCustomData.php
    2. It says “full system path”, so does that mean I would have to also include my computerusername/desktop/websites/dayspring-com/htdocs … before this? The example URL provide, doesn’t appear to include that … “/var/www/html/magento/udo/udo.php”

Screen Shot 2017-07-12 at 2.08.39 PM.png

 

 

  1. The data variables, supposedly, can be added to the example PHP file TealiumCustomData.php
    1. For my test scenario, I tried to add ‘product_url’, copying how the variables appear to be built in TealiumInit.php, but I do not see it return anything in the console or in view source.
    2. How do I know if what I added works? Do I have to add the variables in TealiumIQ too?

 

Screen Shot 2017-07-12 at 2.16.30 PM.png

 

Screen Shot 2017-07-12 at 2.20.13 PM.png

 

Screen Shot 2017-07-12 at 2.20.26 PM.png

Highlighted

Updating Data Layer in Magento

Rookie Contributor
I was very close, I just needed to get the full Custom UDO file path.
Highlighted

Updating Data Layer in Magento

Employee Emeritus

Nice @Christine! I'm glad you figured it out!

 

And thank you @shushan_klein for helping. 

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.