AdMob / AdWords Conversion Tracking in an Ionic App


A client for whom we’ve developed a hybrid app using Ionic had asked us to close the loop on their AdWords and AdMob marketing campaigns and turn on the ability to track conversions within the app.

Like always, we began with search on Google for an open-source Cordova plugin. There wasn’t much out there on the interwebs but we did find one Phonegap plugin called GoogleAppTracking Plugin

To get it working with Ionic, you can follow the instructions that are provided in the plugin’s GitHub README file but here are few pointers that threw us off a bit:

While running “ionic build android” we got an error that required for the following:
Ensure that the root config.xml has the following added to the tag:

xmlns:gap="http://phonegap.com/ns/1.0"

We weren’t sure where to add the tags:
Ensure that the following tag is added as a child of the tag.

<gap:plugin name="cordova-plugin-googleplus" source="npm">
  <param name="REVERSED_CLIENT_ID" value="{from Google Developer Console}" />
</gap:plugin>

Was there a JS file in include in index.html?
No

Does the object GappTrack need to be injected?
No.

Can the object GappTrack be called in anywhere (
We don’t think so. The plugin is not available via ngCordova and also is only initiated onDeviceReady(). So here is what we put within our onDeviceReady() tag:

if (window.cordova) {
    GappTrack.track("{tracking ID}", "{tracking key}", "0.00", false);
} else {
    console.log("WARNING: No GappTrack plugin found");
}

Hopefully people who want to use this plugin but are struggling setting it up can find this post and use our learnings to get going.

Price via Weight Calculation Formula For Gold Products


Hello,

I’m Abhijeet Yadav. I am going to tell you about calculation for weight and size for different gold attributes such as melting, wastage, size.

For one of our web application projects being built using laravel we needed to implement cart page for gold. The cart page lists all the orders of different sellers. Each order item has melting, wastage, size, weight and price attributes associated with it. The price and weight changes with any changes in melting and size. This blog post elaborates on  calculation for price and weight under the changes in three different scenarios.

Scenarios

1) When Melting Changes

Base knowledge:-

In gold 24 carat is 100% gold so 1 carat is 4.167% i.e, (100/24=4.167) of gold.
So 18 carat is 18* 4.167 = 75% of gold. The same holds for all the carats of gold.

Condition:-

Ring size = 10, weight = 2 grms, melting = 18 carat.
Than if the buyer wants the same item in 22 carat the weight will increase by 16.60%.

Calculation (All the calculations are approx not exact):-

(22 X 4.167) – (18 X 4.167) = 16.60%.
This is standard and can be used for different melting .

 

2) When Size Changes

Condition:-

Ring size = 10, weight =  2 grms, melting =  18 carat.

The same item in size = 15, melting = 18.
It’s basic cross multiplication.

Grms                 Weight

10                       2

15                       ?

Weight = 3 grms (15X2/10)

 

3) When Both Melting & Size Changes

In this type of scenario whenever both melting and size changes weight is calculated as

First Weight for that particular selected melting is calculated, followed by selected size as discussed in the first two scenario

Calculation For Price

Base knowledge:-

Price of 1 grm of Gold = 2751 Rs (Assumption)

Price calculation depends on the weight of the gold.

So if the weight of the gold is 3 grms the total price will be weight multiplied by one gram of weight

(weight) X (price for 1 grm) = 3 X 2751 = 82533 rs

 

Calculation of 1grm of gold

In Gold there are two types of gold price

1) RTGS

2) Hazir

The price that we get through API is RTGS which is for 99.50%. We have to convert this price for 99.99%

This is done by simple division i.e,

price = 25650/99.50X100 = 25778.89

The price above is for the 10grms of gold so 1grm = 25778.89/10=2577.88 Rs

 

 

 

Alone We Can Do So Little; Together We Can Do So Much!


“Coming together is a beginning. Keeping together is progress. Working together is success!”

I joined Tacto a month ago. I was the first non-tech person on the team and my role had me thinking that I’d be a misfit among a clique of technologists. After a week I stopped worrying about this. Everybody was in their own silos and there was very little interaction. Even though my personality found this uncomfortable, I took solace in the fact that I wasn’t a misfit.

While Sharmil and Anuj were clearly workaholics, the team got caught between work and frolic. No matter how smart, talented, driven, or passionate an entrepreneur is, success will depend on his/her ability to build and inspire a team. A team can only be inspired by some common ground. It can’t just be a common vision and goals.. there have to be team events!!!

Continue reading