PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, July 1, 2022

[FIXED] How to Track "Request Product" or "Save" configurations

 July 01, 2022     json, roomle, shopify     No comments   

Issue

I am trying to figure out how to add the capability to track conversions on Roomle. Right now I can only see the number of conversions, but nothing about the product(s) or the person's info. As our company really thrives off of leads/conversions. I was curious on how to go about getting the "Request Button" to work? I've tried multiple settings in the "Tenant Settings" section, but I can't seem to get anywhere with it. Here are my settings so far:

{
    "showPrice": true,
    "useRoomlePrice": true,
    "unit": "inchfeet",
    "precisionInch": "0",
    "ls": "shelf_front",
    "emails": true,
    "onRequestProduct": true,
    "skin": {
        "brand-logo": "https://cdn.shopify.com/s/files/1/0516/5760/5278/files/logo-black_140x.png?v=1606838002",
        "primary-color": "black",
        "color-on-primary": "white",
        "font-color": "white"
    }
}

This is kind of what I am aiming for so we can generate some possible leads/follow up emails or phone calls: Roomle Example

Hopefully this all makes sense, if I need to explain further, or if there is anything else I can do to help make this happen, please let me know! I greatly look forward to your response!

Kind Regards,

Wade Morrison


Solution

To track which configurations led to a conversion (e.g. request product) you can add a callback to onRequestProduct, see https://docs.roomle.com/web/embedding/#listen-to-onrequestproduct

The first param is the configurationId which identifies this exact configuration and can be used to load it again.

If you want to show a form to collect mail addresses you have to implement your own button and call triggerRequestProduct when clicked. This will then again trigger the callback onRequestProduct which should contain all the infos you'll need.



Answered By - teh.fonsi
Answer Checked By - Katrina (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

1,204,686

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © 2025 PHPFixing